add hook for text-mode-hook with hl-line-mode

This commit is contained in:
Jason Tian 2024-07-11 16:53:34 +08:00
parent 1ac7b99e60
commit 416f8354e6

View file

@ -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)