From f3c383b7906235e3b50dbc196194f311bf949174 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Sun, 1 Jan 2023 02:25:08 +0800 Subject: imenu: flatten imenu * imenu-conf.el (imenu-flatten-p): A variable to control whether or not we want to flatten imenu. (imenu-flatten-prefix): A helper function to deal with prefixes. (imenu-flatten): The function that actually flattens the lists. (imenu-flatten-advice, imenu--make-index-alist): Advice the producer of indices of imenu to plug our flattening logic in. * init.el ("imenu-conf.el"): Load this configuration automatically. --- init.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index fdeb8de..228e81a 100644 --- a/init.el +++ b/init.el @@ -420,6 +420,10 @@ no effect." 'auto-mode-alist (cons "\\.rumu$" #'rumu-mode)))) +;;; imenu settings + +(load-config "imenu-conf.el") + ;;; Cat and mouse (cond ((display-mouse-p) (mouse-avoidance-mode 'none))) -- cgit v1.2.3-18-g5258