branch: elpa/raku-mode commit 0bd2a0966359668c2ef96494bf85ebfea7ec3f9a Author: Tom Browder <tom.brow...@gmail.com> Commit: Tom Browder <tom.brow...@gmail.com>
add vars moved from perl6-imenu.el per comments from syohex --- perl6-mode.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl6-mode.el b/perl6-mode.el index 0350cd9bac..d5b2d24e76 100644 --- a/perl6-mode.el +++ b/perl6-mode.el @@ -51,6 +51,11 @@ (add-hook 'syntax-propertize-extend-region-functions #'syntax-propertize-multiline nil 'local) (setq-local font-lock-syntactic-face-function #'perl6-font-lock-syntactic-face) (setq-local font-lock-defaults '(perl6-font-lock-keywords nil nil)) + ;; Add imenu support for perl6-mode. Note that imenu-generic-expression + ;; is buffer-local, so we don't need a local-variable for it. + (add-hook 'perl6-mode-hook 'imenu-add-menubar-index) + (setq imenu-generic-expression perl6-imenu-generic-expression + imenu-case-fold-search nil) ;; Comments (setq-local comment-start "#") (setq-local comment-start-skip "#+ *")