summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-05-09 22:51:39 -0400
committerKyle Meyer <kyle@kyleam.com>2017-05-09 22:51:39 -0400
commit6dbc95dfdea4c3a633b77783ea8fbcff96d304b7 (patch)
treed80f682bb2c0679964973cb24dcadee43bf3f9f3
parent03ce1754b0e0d9c2e00cdbbc1eee5e255c65891d (diff)
downloademacs.d-6dbc95dfdea4c3a633b77783ea8fbcff96d304b7.tar.gz
scheme: Add 'define-public' to imenu expression
-rw-r--r--init.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/init.el b/init.el
index 9e7e0d7..d7c5117 100644
--- a/init.el
+++ b/init.el
@@ -1929,6 +1929,16 @@
:config
(define-key geiser-mode-map (kbd "C-.") nil))
+(use-package scheme
+ :defer
+ :config
+ (add-hook 'scheme-mode-hook
+ (lambda ()
+ (setq imenu-generic-expression
+ (cons (list nil
+ "^(define-public\\s-+\\(\\sw+\\)" 1)
+ imenu-generic-expression)))))
+
(use-package python
:defer t
:init