diff options
author | Franck Cuny <franck.cuny@gmail.com> | 2016-11-20 18:54:27 -0800 |
---|---|---|
committer | Franck Cuny <franck.cuny@gmail.com> | 2016-11-20 18:54:27 -0800 |
commit | 6980534109afe616f0a63ba594d32d61d8b6d96f (patch) | |
tree | f9d59cb903fb6cabcffcfa38425fef6a25399ea6 | |
parent | [iterm] Add initial configuraiton. (diff) | |
download | emacs.d-6980534109afe616f0a63ba594d32d61d8b6d96f.tar.gz |
[Emacs] highlight current line.
-rw-r--r-- | emacs.d/init.el | 9 |
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 |