line-reminder icon indicating copy to clipboard operation
line-reminder copied to clipboard

upgrade needed linum to new line number mode

Open Aneeqasif opened this issue 2 years ago • 6 comments

image

i am not a emacs expert but it seems like linum mode is obsolete which this package is making use of and enabling this cause unwanted double line in emacs if only way to use this package with default doom emacs is by using indicators which donot loook as visually good as the linum option provide. i hope u get my point. please adress this issue thanks :)

Aneeqasif avatar Nov 25 '23 11:11 Aneeqasif

The current recommendation is to use display-line-numbers-mode (the newer line number mode) plus the indicators option. Unfortunately, display-line-numbers-mode doesn't allow you to customize the format like linum-mode does. 😓

jcs090218 avatar Nov 26 '23 01:11 jcs090218

yeah i can understand it is not a big deal though i just wanted the indicator bitmaps to look visually more like they are a one single hunk instead of sperated lines for each line but ig its not possible with indicators so i am happy that i get to use this package thats enough for me .

Aneeqasif avatar Nov 29 '23 18:11 Aneeqasif

do u know of any alternatives for this package ?

Aneeqasif avatar Nov 29 '23 18:11 Aneeqasif

I just wanted the indicator bitmaps to look visually more like they are a one single hunk instead of sperated lines for each line but ig its not possible with indicators so i am happy that i get to use this package thats enough for me .

I'm not quite sure if I understand this. You can design bitmap in any way you want! 😀

do u know of any alternatives for this package ?

The closest I could think of is git-gutter or diff-hl.

jcs090218 avatar Nov 29 '23 19:11 jcs090218

i mean with default settings mine look like this

image

(add-hook 'prog-mode-hook  'line-reminder-mode)
(add-hook 'org-mode-hook 'line-reminder-mode)
(setq line-reminder-bitmap 'line-reminder--default-bitmap)
(setq line-reminder-thumbnail t)
(setq line-reminder-show-option 'indicators)

while yours look like this

image

how can i make the bitmaps to look like its a part of same line as you have shown in screen shot i have tried it with jetbrainsmono and iosevka fonts any clue?

Aneeqasif avatar Nov 30 '23 13:11 Aneeqasif

Try

(fringe-helper-define 'my-bitmap nil
  "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.."
  "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.."
  "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.."
  "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.."
  "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.."
  "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.."
  "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.."
  "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.."
  "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.."
  "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.."
  "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.."
  "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.." "..xxx.."
  "..xxx.." "..xxx..")

(setq line-reminder-bitmap 'my-bitmap)

jcs090218 avatar Nov 30 '23 21:11 jcs090218