[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

48. VI-style Line Number Mode

This library activates VI-style line numbering for a buffer.

M-x setnu-mode toggles the line number mode on and off.

turn-on-setnu-mode is useful for adding to a major-mode hook variable.

 
  (add-hook 'text-mode-hook 'turn-on-setnu-mode)

to automatically turn on line numbering when entering text-mode.


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by Aidan Kehoe on December 27, 2016 using texi2html 1.82.