1
0
Fork 0

Add \C-n to toggle nlinum-mode

org
Mike Gerwitz 2015-08-27 23:17:46 -04:00
parent a1e11e7e28
commit ae958d92a4
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
1 changed files with 8 additions and 2 deletions

View File

@ -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