about summary refs log tree commit diff
path: root/configs/shared/.emacs
diff options
context:
space:
mode:
Diffstat (limited to 'configs/shared/.emacs')
-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)