I have this
magit configuration which automatically sets the magit commit message buffer to
INSERT mode, but it assumes that
evil is installed and active which may not be the case. How can I configure it so that it will only apply if
evil is installed and active?
(use-package magit :ensure t :bind (("C-x g" . magit-status)) :config (setq magit-ediff-dwim-show-on-hunks t) (add-hook 'git-commit-setup-hook #'evil-insert-state) )