Fork me on GitHub
#emacs
<
2017-03-12
>
qqq00:03:05

is there a way in evil to check for "is cursor at end of line" ?

qqq03:03:20

Anyone here using avy jump to line? So it turns out the line short hands are always constant. Is there a way to keep it always displayed? Something like line numbers, but instead of displaying numbers, I want it to just always display the keycode for the avy jump command.

qqq03:03:38

evil easy motion is insane

qqq09:03:12

in emacs, how can I get linum-mode to display relative instead of absolute line numbers?

qqq12:03:41

are there. emacs builtins for killing emacs qhitespace, i.e.

(+ (foo)

  (bar 2 3 )
  (* 2 ( * 3 5) ) )
into
(+ (foo)
  (bar 2 3)
  (+ 2 (* 3 5)))

qqq12:03:06

basically it should (1) kill all bank white lines, (2) change all adjacent spaces to just one space, and (3) merge )'s that are on their own line

qqq14:03:17

this is sorta weird -- but is it possible in emacs, to have blocks a vertical hrule every 10 lines of buffer displayed

qqq14:03:45

so I want it to look something like

`
10 lines of buffer
---- a hrule ---- displayed // but not a real line in the file
10 lines of buffer
--- another hrule ---
...

qqq14:03:56

this is to help me with movement keys, so I can guess things like C-u 10 C-n correctly

richiardiandrea16:03:00

@qqq you should collect all these questions + answers somewhere 😀

richiardiandrea16:03:07

They can be useful for folks. About the relative numbers in linum I saw some option somewhere, check either the readme or EmacsWiki

qqq17:03:50

@richiardiandrea : as it turns out, you can specify a functino which linum=-mode calls on each line; unfortunately, I don't get refresh to work (i.e. strategy was : get current line, subtract it from the 'absolute count') -- unforuntatley, when I move cursor around, my current-line-count isn't refreshed