From ba25b9febcb1bf4b059876d160af644f6c014102 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 7 Dec 2023 14:33:19 +0000 Subject: [PATCH] Enable which-function-mode Displays current function in modeline --- home/emacs/init.el | 4 ++++ home/emacs/init.org | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/home/emacs/init.el b/home/emacs/init.el index 00e41964..d96f6771 100644 --- a/home/emacs/init.el +++ b/home/emacs/init.el @@ -100,6 +100,10 @@ ("C-c j l" . avy-goto-line) ("C-c j C-c" . avy-goto-char-2))) +(use-package which-func + :ensure t + :init (which-function-mode)) + (setq use-dialog-box nil truncate-lines nil truncate-partial-width-windows nil) diff --git a/home/emacs/init.org b/home/emacs/init.org index 910c3e33..a8994b4d 100644 --- a/home/emacs/init.org +++ b/home/emacs/init.org @@ -128,6 +128,13 @@ ("C-c j l" . avy-goto-line) ("C-c j C-c" . avy-goto-char-2))) #+end_src + +** which-func config +#+begin_src emacs-lisp + (use-package which-func + :ensure t + :init (which-function-mode)) +#+end_src * UI #+begin_src emacs-lisp (setq use-dialog-box nil