From 416f8354e6b1e7f82bdd34719a4656f935cbd170 Mon Sep 17 00:00:00 2001 From: Jason Tian Date: Thu, 11 Jul 2024 16:53:34 +0800 Subject: [PATCH] add hook for text-mode-hook with hl-line-mode --- lisp/init-hooks.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/init-hooks.el b/lisp/init-hooks.el index b30bdc5..53c5f97 100644 --- a/lisp/init-hooks.el +++ b/lisp/init-hooks.el @@ -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)