From 0a1d5c3421e60d069ac8a730cf72b5fc6d2e03aa Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 23 Jan 2025 06:54:16 +0000 Subject: [PATCH] Limit which-func-modes to prog-mode only --- init.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index ec3a6ee..b818026 100644 --- a/init.el +++ b/init.el @@ -114,12 +114,17 @@ (line-number-mode +1) (column-number-mode +1) (size-indication-mode -1) - (which-function-mode +1) (doom-modeline-mode +1) :config (set-face-attribute 'doom-modeline nil :weight 'normal) (set-face-attribute 'doom-modeline-buffer-path nil :slant 'normal)) +(use-package which-func + :init + (which-function-mode +1) + :custom + (which-func-modes '(prog-mode))) + (global-visual-line-mode +1) (use-package visual-fill-column