about summary refs log tree commit diff
path: root/configs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2017-07-02T02·55-0400
committerWilliam Carroll <wpcarro@gmail.com>2017-07-02T02·55-0400
commit821eda6764697e738089dbc760d3a101561efcb1 (patch)
tree7a4ee411480dc473343622fefef6efeee3b6f8b7 /configs
parent96c08612a2881e4cf6e9a8478c1279b044b5194d (diff)
Whitelists *scratch* buffers for linum mode
Diffstat (limited to 'configs')
-rw-r--r--configs/shared/.emacs3
1 files changed, 2 insertions, 1 deletions
diff --git a/configs/shared/.emacs b/configs/shared/.emacs
index 53723d57fe7d..2853b334421b 100644
--- a/configs/shared/.emacs
+++ b/configs/shared/.emacs
@@ -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)