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: ;;; 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)