diff options
author | Case Duckworth | 2021-05-28 22:42:24 -0500 |
---|---|---|
committer | Case Duckworth | 2021-05-28 22:42:24 -0500 |
commit | 7b3cafc04b13f836d58d30a421caa369b2d841c1 (patch) | |
tree | e00499d7b8edda2d64f0f21669b2155f4a6ab5c3 | |
parent | Require auth-source (diff) | |
download | emacs-7b3cafc04b13f836d58d30a421caa369b2d841c1.tar.gz emacs-7b3cafc04b13f836d58d30a421caa369b2d841c1.zip |
Add (setup... forms to imenu in elisp
-rw-r--r-- | init.el | 6 |
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) |