feature/evil: use magit-section-toggle if mode is derived from magit-mode

- Closes #359
- See also https://github.com/hlissner/doom-emacs/pull/359#issuecomment-359220633
This commit is contained in:
Yiming Chen 2018-01-21 11:51:29 +08:00
parent 322e6afd55
commit abd3bc87fe

View file

@ -88,7 +88,7 @@
(interactive)
(ignore-errors
(call-interactively
(cond ((string-prefix-p "magit" (symbol-name major-mode))
(cond ((derived-mode-p 'magit-mode)
#'magit-section-toggle)
((+evil-fold-p)
#'+evil:fold-toggle)