mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -88,7 +88,7 @@
|
|||||||
(interactive)
|
(interactive)
|
||||||
(ignore-errors
|
(ignore-errors
|
||||||
(call-interactively
|
(call-interactively
|
||||||
(cond ((string-prefix-p "magit" (symbol-name major-mode))
|
(cond ((derived-mode-p 'magit-mode)
|
||||||
#'magit-section-toggle)
|
#'magit-section-toggle)
|
||||||
((+evil-fold-p)
|
((+evil-fold-p)
|
||||||
#'+evil:fold-toggle)
|
#'+evil:fold-toggle)
|
||||||
|
Reference in New Issue
Block a user