Whitelists *scratch* buffers for linum mode
This commit is contained in:
parent
96c08612a2
commit
821eda6764
1 changed files with 2 additions and 1 deletions
|
@ -236,7 +236,8 @@
|
||||||
(defun linum-on ()
|
(defun linum-on ()
|
||||||
(if (or (memq major-mode linum-disabled-modes-list)
|
(if (or (memq major-mode linum-disabled-modes-list)
|
||||||
(minibufferp)
|
(minibufferp)
|
||||||
(string-match-p "*" (buffer-name)))
|
(and (string-match-p "*" (buffer-name))
|
||||||
|
(not (string-match-p "*scratch*" (buffer-name)))))
|
||||||
(linum-mode -1)
|
(linum-mode -1)
|
||||||
(progn
|
(progn
|
||||||
(linum-mode nil)
|
(linum-mode nil)
|
||||||
|
|
Loading…
Reference in a new issue