Enable hl-line-mode individually
Enabling hl-line-mode globally causes undesired and disruptive highlighting effects in buffers such as eshell. Enabling it in prog-mode and text-mode should be fine, though. Additional modes may be added later.
This commit is contained in:
parent
b80271d299
commit
31e2067050
3
init.el
3
init.el
|
@ -112,7 +112,6 @@
|
|||
(global-auto-revert-mode -1)
|
||||
(which-function-mode +1)
|
||||
(global-eldoc-mode +1)
|
||||
(global-hl-line-mode +1)
|
||||
|
||||
;; Activate modes (packages)
|
||||
|
||||
|
@ -155,6 +154,7 @@
|
|||
(add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p)
|
||||
(add-hook 'prog-mode-hook 'page-break-lines-mode)
|
||||
(add-hook 'prog-mode-hook 'subword-mode)
|
||||
(add-hook 'prog-mode-hook 'hl-line-mode)
|
||||
(add-hook 'lisp-mode-hook 'turn-on-lispy-when-available)
|
||||
|
||||
(when (<= 24 emacs-major-version)
|
||||
|
@ -162,6 +162,7 @@
|
|||
|
||||
(add-hook 'text-mode-hook 'turn-on-auto-fill)
|
||||
(add-hook 'text-mode-hook 'abbrev-mode)
|
||||
(add-hook 'text-mode-hook 'hl-line-mode)
|
||||
|
||||
;; Auto-Modes
|
||||
|
||||
|
|
Loading…
Reference in New Issue