From 6980534109afe616f0a63ba594d32d61d8b6d96f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 20 Nov 2016 18:54:27 -0800 Subject: [Emacs] highlight current line. --- emacs.d/init.el | 9 +++++---- 1 file 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 -- cgit 1.4.1