summaryrefslogtreecommitdiff
path: root/emacs.d/init.el
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2016-11-20 18:54:27 -0800
committerFranck Cuny <franck.cuny@gmail.com>2016-11-20 18:54:27 -0800
commit6980534109afe616f0a63ba594d32d61d8b6d96f (patch)
treef9d59cb903fb6cabcffcfa38425fef6a25399ea6 /emacs.d/init.el
parent[iterm] Add initial configuraiton. (diff)
downloademacs.d-6980534109afe616f0a63ba594d32d61d8b6d96f.tar.gz
[Emacs] highlight current line.
Diffstat (limited to '')
-rw-r--r--emacs.d/init.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
index a3ec7a3..df7aa4c 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -259,16 +259,17 @@
(add-hook 'before-save-hook 'gofmt-before-save)
(add-hook 'go-mode-hook (lambda () (setq-local tab-width 4))))
-(use-package ibuffer
- ;; configuration for ibuffer
- :ensure t
(use-package hl-line
;; highlight current line
:defer t
:init
(progn
- (global-hl-line-mode +1)))
+ (add-hook 'text-mode-hook 'hl-line-mode)
+ (add-hook 'prog-mode-hook 'hl-line-mode)))
+(use-package ibuffer
+ ;; configuration for ibuffer
+ :ensure t
:defer t
:bind ("C-x C-b" . ibuffer)
:init