From ae958d92a4e698f2aad1ca264587131eb7443aa8 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Thu, 27 Aug 2015 23:17:46 -0400 Subject: [PATCH] Add \C-n to toggle nlinum-mode --- emacs.d/emacs.org | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/emacs.d/emacs.org b/emacs.d/emacs.org index df63bf5..3ef4b26 100644 --- a/emacs.d/emacs.org +++ b/emacs.d/emacs.org @@ -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 <<>> 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 <<>> 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