From 41fb15979a1094ef8406cce84ffb35077f8a7814 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 28 Jun 2016 17:13:35 -0700 Subject: [PATCH] Disable global linum mode, add it as a prog mode hook instead --- dotfiles/emacs.d/README.org | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 69a428b3..7ce864ab 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -173,7 +173,11 @@ Ensure by default since most of the package for which I use use-package need to #+BEGIN_SRC emacs-lisp (line-number-mode t) (column-number-mode t) - (global-linum-mode t) +#+END_SRC +Linum can be really slow so do not have it on by default. Its probably safe to turn it on when in a programming mode +#+BEGIN_SRC emacs-lisp + (global-linum-mode -1) + (add-hook 'prog-mode-hook (lambda () (linum-mode t))) #+END_SRC ** Backups *** Put them all in one directory