Add emacs mode checks to insert mode checks
This is to accommodate users who default to emacs mode, rather than insert mode. The two are also very alike, so many of these checks should apply to both (almost) equally.
This commit is contained in:
parent
8edabbecfa
commit
d149c59d2e
4 changed files with 13 additions and 5 deletions
|
@ -93,6 +93,7 @@ info in the `header-line-format' is a more visible indicator."
|
|||
"Start git-commit-mode in insert state if in a blank commit message,
|
||||
otherwise in default state."
|
||||
(when (and (bound-and-true-p evil-mode)
|
||||
(not (evil-emacs-state-p))
|
||||
(bobp) (eolp))
|
||||
(evil-insert-state)))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue