Whitelists *scratch* buffers for linum mode

This commit is contained in:
William Carroll 2017-07-01 22:55:11 -04:00
parent 96c08612a2
commit 821eda6764

View file

@ -236,7 +236,8 @@
(defun linum-on ()
(if (or (memq major-mode linum-disabled-modes-list)
(minibufferp)
(string-match-p "*" (buffer-name)))
(and (string-match-p "*" (buffer-name))
(not (string-match-p "*scratch*" (buffer-name)))))
(linum-mode -1)
(progn
(linum-mode nil)