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:
|
;;; Code:
|
||||||
|
|
||||||
|
|
||||||
;; highlight current line for all programming major modes
|
;; highlight current line
|
||||||
(add-hook 'prog-mode-hook #'hl-line-mode)
|
(dolist (hook '(
|
||||||
|
prog-mode-hook
|
||||||
|
text-mode-hook
|
||||||
|
))
|
||||||
|
(add-hook hook #'hl-line-mode))
|
||||||
|
|
||||||
(defun my/hs-hide-all ()
|
(defun my/hs-hide-all ()
|
||||||
(hs-minor-mode 1)
|
(hs-minor-mode 1)
|
||||||
|
|
Loading…
Reference in a new issue