summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-05-28 22:42:24 -0500
committerCase Duckworth2021-05-28 22:42:24 -0500
commit7b3cafc04b13f836d58d30a421caa369b2d841c1 (patch)
treee00499d7b8edda2d64f0f21669b2155f4a6ab5c3
parentRequire auth-source (diff)
downloademacs-7b3cafc04b13f836d58d30a421caa369b2d841c1.tar.gz
emacs-7b3cafc04b13f836d58d30a421caa369b2d841c1.zip
Add (setup... forms to imenu in elisp
-rw-r--r--init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.el b/init.el index 201dab9..11b84b0 100644 --- a/init.el +++ b/init.el
@@ -189,6 +189,12 @@
189 (defun emacs-lisp@enforce-lexical-binding () 189 (defun emacs-lisp@enforce-lexical-binding ()
190 (setq lexical-binding t))) 190 (setq lexical-binding t)))
191 191
192 (add-hook 'emacs-lisp-mode-hook
193 (defun emacs-lisp@imenu-add-setup ()
194 (add-to-list 'imenu-generic-expression
195 '("Setup"
196 "\\(^\\s-*(setup +(?\\)\\(\\_<.+\\_>\\)" 2))))
197
192 (defun acdw/eval-region-or-buffer () 198 (defun acdw/eval-region-or-buffer ()
193 (interactive) 199 (interactive)
194 (if (region-active-p) 200 (if (region-active-p)