Created
January 17, 2012 13:22
-
-
Save takaxp/1626603 to your computer and use it in GitHub Desktop.
Abbreviation of the word "Narrow" in mode line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defvar my-narrow-display " N") | |
(setq mode-line-modes | |
(mapcar (lambda (entry) | |
(if (and (stringp entry) | |
(string= entry "%n")) | |
'(:eval (if (and (= 1 (point-min)) | |
(= (1+ (buffer-size)) (point-max))) "" | |
my-narrow-display)) entry)) | |
mode-line-modes)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment