From 6c294e1af28ff8492f513e838d38882fffbb5a89 Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Fri, 8 Dec 2023 08:08:30 -0500 Subject: [PATCH] Enable show-paren-mode with hooks --- init.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index 5c07261..bf63db9 100644 --- a/init.el +++ b/init.el @@ -648,11 +648,12 @@ have been closed." (editor-feature paren "Highlights matching delimiter pairs under the cursor." - :config - (show-paren-mode) :custom (show-paren-delay 0.0 "Highlight matching delimiters instantly") - (show-paren-context-when-offscreen t "Show context of matching off-screen delimiters")) + (show-paren-context-when-offscreen t "Show context of matching off-screen delimiters") + :hook + (text-mode-hook . show-paren-mode) + (prog-mode-hook . show-paren-mode)) ;; ---------------------------------- ;; ;; pixel-scroll