Add (setup... forms to imenu in elisp
This commit is contained in:
parent
89513fb0b8
commit
7b3cafc04b
6
init.el
6
init.el
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue