feature/version-control: fix git-gutter-fringe not loading

Due to the new policy on package-initialize, git-gutter-fringe wouldn't
autoload properly (since we try to fool Emacs into loading it when
git-gutter-mode is called).
This commit is contained in:
Henrik Lissner 2018-02-28 17:15:04 -05:00
parent c5abcfa703
commit 963c809c70
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -14,12 +14,13 @@
(def-package! git-gutter-fringe
:commands git-gutter-mode
:defer t
:init
(defun +version-control|git-gutter-maybe ()
"Enable `git-gutter-mode' in non-remote buffers."
(when (and (buffer-file-name)
(not (file-remote-p (buffer-file-name))))
(require 'git-gutter-fringe)
(git-gutter-mode +1)))
(add-hook! (text-mode prog-mode conf-mode) #'+version-control|git-gutter-maybe)
:config