feat(emacs-lisp,lispy): recognize ;;* outline headings
Permit `;;* ...` be recognized by imenu and outline-minor-mode (and outline's commands). This also patches Lispy to reflect this new configuration (if :lang emacs-lisp is active). Close: #6732 Co-authored-by: LemonBreezes <LemonBreezes@users.noreply.github.com>
This commit is contained in:
parent
6887998c23
commit
a0ccb6b95b
3 changed files with 19 additions and 4 deletions
|
@ -22,7 +22,15 @@
|
|||
(local-set-key (vector 'remap (lookup-key lispy-mode-map (kbd "TAB"))) #'completion-at-point)))
|
||||
:config
|
||||
(setq lispy-close-quotes-at-end-p t)
|
||||
(add-hook 'lispy-mode-hook #'turn-off-smartparens-mode))
|
||||
(add-hook 'lispy-mode-hook #'turn-off-smartparens-mode)
|
||||
|
||||
(when (modulep! :lang emacs-lisp)
|
||||
(setq lispy-outline
|
||||
(concat
|
||||
;; `lispy-mode' requires `lispy-outline' start with ^
|
||||
(unless (string-prefix-p "^" +emacs-lisp-outline-regexp) "^")
|
||||
+emacs-lisp-outline-regexp))
|
||||
(advice-add #'lispy-outline-level :override #'+emacs-lisp-outline-level)))
|
||||
|
||||
|
||||
(use-package! lispyville
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue