git: hook fci-mode only when fci package is used
This commit is contained in:
parent
2279c2c80e
commit
88e4ddf778
|
@ -12,6 +12,7 @@
|
|||
(setq git-packages
|
||||
'(
|
||||
evil-magit
|
||||
fill-column-indicator
|
||||
gitattributes-mode
|
||||
gitconfig-mode
|
||||
gitignore-mode
|
||||
|
@ -34,6 +35,9 @@
|
|||
(evil-define-key 'motion magit-mode-map
|
||||
(kbd dotspacemacs-leader-key) spacemacs-default-map)))
|
||||
|
||||
(defun git/post-init-fill-column-indicator ()
|
||||
(add-hook 'git-commit-mode-hook 'fci-mode))
|
||||
|
||||
(defun git/init-helm-gitignore ()
|
||||
(use-package helm-gitignore
|
||||
:defer t
|
||||
|
@ -113,7 +117,6 @@
|
|||
'ivy-completing-read
|
||||
'magit-builtin-completing-read))
|
||||
(setq magit-revision-show-gravatars '("^Author: " . "^Commit: "))
|
||||
(add-hook 'git-commit-mode-hook 'fci-mode)
|
||||
;; On Windows, we must use Git GUI to enter username and password
|
||||
;; See: https://github.com/magit/magit/wiki/FAQ#windows-cannot-push-via-https
|
||||
(when (eq window-system 'w32)
|
||||
|
|
Loading…
Reference in a new issue