Add (setup... forms to imenu in elisp

This commit is contained in:
Case Duckworth 2021-05-28 22:42:24 -05:00
parent 89513fb0b8
commit 7b3cafc04b
1 changed files with 6 additions and 0 deletions

View File

@ -189,6 +189,12 @@
(defun emacs-lisp@enforce-lexical-binding ()
(setq lexical-binding t)))
(add-hook 'emacs-lisp-mode-hook
(defun emacs-lisp@imenu-add-setup ()
(add-to-list 'imenu-generic-expression
'("Setup"
"\\(^\\s-*(setup +(?\\)\\(\\_<.+\\_>\\)" 2))))
(defun acdw/eval-region-or-buffer ()
(interactive)
(if (region-active-p)