From 691a293e58e380e25fd388d86a0113ed8d4930ea Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Thu, 26 Jun 2025 12:11:37 -0400 Subject: [PATCH] Add imenu-auto-rescan and imenu-max-item-length --- init.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.el b/init.el index 654e135..fed0e85 100644 --- a/init.el +++ b/init.el @@ -121,6 +121,13 @@ (setq tramp-completion-reread-directory-timeout 50) (setq remote-file-name-inhibit-cache 50) +;; Automatically rescan the buffer for Imenu entries when `imenu' is invoked +;; This ensures the index reflects recent edits. +(setq imenu-auto-rescan t) + +;; Prevent truncation of long function names in `imenu' listings +(setq imenu-max-item-length 160) + ;;; Files ;; Delete by moving to trash in interactive mode