mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
feature/evil: refactor folding & outline support
Code folding commands will now obey outline headers (if outline-minor-mode is on and in outline-mode).
This commit is contained in:
@ -25,7 +25,14 @@
|
||||
enh-ruby-forward-sexp nil)
|
||||
(matlab-mode "if\\|switch\\|case\\|otherwise\\|while\\|for\\|try\\|catch"
|
||||
"end"
|
||||
nil (lambda (arg) (matlab-forward-sexp))))
|
||||
nil (lambda (_arg) (matlab-forward-sexp))))
|
||||
hs-special-modes-alist
|
||||
'((t))))))
|
||||
|
||||
|
||||
;; Ensure `hs-minor-mode' is active when triggering these commands
|
||||
(advice-add #'hs-toggle-hiding :before #'+hideshow*ensure-mode)
|
||||
(advice-add #'hs-hide-block :before #'+hideshow*ensure-mode)
|
||||
(advice-add #'hs-hide-level :before #'+hideshow*ensure-mode)
|
||||
(advice-add #'hs-show-all :before #'+hideshow*ensure-mode)
|
||||
(advice-add #'hs-hide-all :before #'+hideshow*ensure-mode)
|
||||
|
Reference in New Issue
Block a user