From 96de09aff525e2d622184706c588ac582cb410a4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 21 Oct 2015 05:16:32 -0400 Subject: [PATCH] Don't enable nlinum in org-mode --- core/core-ui.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/core-ui.el b/core/core-ui.el index 275026e2f..6d6641b3e 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -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"