Add \C-n to toggle nlinum-mode
parent
a1e11e7e28
commit
ae958d92a4
|
@ -429,7 +429,7 @@ other things. I have used line numbers for over a decade. They are
|
|||
not enabled by default in Emacs (or Vim/vi).
|
||||
|
||||
I originally used <<<linum mode>>> for line numbering, but found that
|
||||
it was far too slow due to my large terminal resolution. So, I gave
|
||||
it was far too slow for my large terminal resolution. So, I gave
|
||||
<<<nlinum mode>>> a try; this was much faster, but was still a
|
||||
bottleneck. So I wrote a more strongly optimized procedure to handle
|
||||
rendering:
|
||||
|
@ -461,7 +461,13 @@ instance, if I need to visit a particular line, I enter the line
|
|||
number, not scroll to it.
|
||||
|
||||
I will, however enable nlinum mode in peer programming situations or
|
||||
code review, since it facilities discussion.
|
||||
code review, since it facilities discussion. Line numbers also help to
|
||||
provide context when navigating large files.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(evil-define-key 'normal global-map
|
||||
"\C-n" 'nlinum-mode)
|
||||
#+END_SRC
|
||||
|
||||
|
||||
** Sentences
|
||||
|
|
Loading…
Reference in New Issue