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 ()
|
||||
(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)
|
||||
|
|
Loading…
Reference in a new issue