add hook for text-mode-hook with hl-line-mode
This commit is contained in:
parent
1ac7b99e60
commit
416f8354e6
1 changed files with 6 additions and 2 deletions
|
@ -3,8 +3,12 @@
|
|||
;;; Code:
|
||||
|
||||
|
||||
;; highlight current line for all programming major modes
|
||||
(add-hook 'prog-mode-hook #'hl-line-mode)
|
||||
;; highlight current line
|
||||
(dolist (hook '(
|
||||
prog-mode-hook
|
||||
text-mode-hook
|
||||
))
|
||||
(add-hook hook #'hl-line-mode))
|
||||
|
||||
(defun my/hs-hide-all ()
|
||||
(hs-minor-mode 1)
|
||||
|
|
Loading…
Reference in a new issue