diff options
author | Jesús <heckyel@hyperbola.info> | 2019-01-31 18:04:54 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-01-31 18:04:54 -0500 |
commit | 7a1c4a38c3608aeda5992adb30e7cd9bd39bc36a (patch) | |
tree | ec7fac1593e3849258a1efaaf4eefd9b0de81fd6 /modules | |
parent | 8ac16168983c654a9f2801ddc66852548a0e2866 (diff) | |
download | emacs-personal-7a1c4a38c3608aeda5992adb30e7cd9bd39bc36a.tar.lz emacs-personal-7a1c4a38c3608aeda5992adb30e7cd9bd39bc36a.tar.xz emacs-personal-7a1c4a38c3608aeda5992adb30e7cd9bd39bc36a.zip |
fix disable linum-mode in modes
Diffstat (limited to 'modules')
-rw-r--r-- | modules/init-nlinum.el | 18 |
1 files changed, 15 insertions, 3 deletions
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 |