git: hook fci-mode only when fci package is used

This commit is contained in:
bmag 2016-10-02 16:20:34 +03:00 committed by Eivind Fonn
parent 2279c2c80e
commit 88e4ddf778
1 changed files with 4 additions and 1 deletions

View File

@ -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)