Use eval-after-load in git layer.
This commit is contained in:
parent
8f38841082
commit
c5a266d702
|
@ -71,13 +71,14 @@
|
|||
(if (and (not git-gutter-use-fringe)
|
||||
(or 'linum-mode global-linum-mode))
|
||||
(git-gutter:linum-setup))
|
||||
(with-eval-after-load (or 'git-gutter 'git-gutter-fringe)
|
||||
(evil-leader/set-key
|
||||
"ghs" 'git-gutter:stage-hunk
|
||||
"ghr" 'git-gutter:revert-hunk
|
||||
"ghN" 'git-gutter:previous-hunk
|
||||
"ghn" 'git-gutter:next-hunk
|
||||
"ghp" 'git-gutter:popup-hunk)))
|
||||
(eval-after-load (or 'git-gutter 'git-gutter-fringe)
|
||||
(progn
|
||||
(evil-leader/set-key
|
||||
"ghs" 'git-gutter:stage-hunk
|
||||
"ghr" 'git-gutter:revert-hunk
|
||||
"ghN" 'git-gutter:previous-hunk
|
||||
"ghn" 'git-gutter:next-hunk
|
||||
"ghp" 'git-gutter:popup-hunk))))
|
||||
|
||||
(defun git/init-git-gutter ()
|
||||
(use-package git-gutter
|
||||
|
|
Loading…
Reference in a new issue