From 7a1c4a38c3608aeda5992adb30e7cd9bd39bc36a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Thu, 31 Jan 2019 18:04:54 -0500 Subject: fix disable linum-mode in modes --- modules/init-nlinum.el | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/init-nlinum.el b/modules/init-nlinum.el index be26193..465ff03 100644 --- a/modules/init-nlinum.el +++ b/modules/init-nlinum.el @@ -10,10 +10,22 @@ (use-package nlinum :config (add-hook 'find-file-hook (lambda () (linum-mode 1))) - (linum-mode) - (setq global-linum-mode t)) + (setq global-linum-mode t) +) + +(use-package linum + :config + (linum-mode 1) + :hook + (apache-mode . linum-mode) + (elisp-mode . linum-mode) + (html-mode . linum-mode) + (js-mode . linum-mode) + (markdown-mode . linum-mode) + (nginx-mode . linum-mode) + (php-mode . linum-mode) + (web-mode . linum-mode)) -(use-package linum) (use-package hl-line) (defface my-linum-hl -- cgit v1.2.3