Don't enable nlinum in org-mode

This commit is contained in:
Henrik Lissner 2015-10-21 05:16:32 -04:00
parent 130b187b12
commit 96de09aff5

View file

@ -111,17 +111,18 @@
(defvar nlinum-format " %3d ")
:init
(defface linum-highlight-face '((t (:inherit linum))) "Face for line highlights")
(defun narf|nlinum-enable ()
(nlinum-mode +1)
(add-hook! post-command 'narf|nlinum-hl-line))
(defun narf|nlinum-disable ()
(nlinum-mode -1)
(remove-hook 'post-command-hook 'narf|nlinum-hl-line)
(narf|nlinum-unhl-line))
;; Preset width nlinum
(add-hook! (text-mode prog-mode scss-mode web-mode) 'narf|nlinum-enable)
(add-hook! org-mode 'narf|nlinum-disable)
(add-hook! (markdown-mode prog-mode scss-mode web-mode) 'narf|nlinum-enable)
:config
(defun narf|nlinum-unhl-line ()
"Highlight line number"