From c5a266d702a158421643ffc393502db76061377e Mon Sep 17 00:00:00 2001 From: person808 Date: Wed, 29 Apr 2015 06:33:10 -1000 Subject: [PATCH] Use eval-after-load in git layer. --- contrib/tools/git/packages.el | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/contrib/tools/git/packages.el b/contrib/tools/git/packages.el index 0bc0f98de..f51723fb0 100644 --- a/contrib/tools/git/packages.el +++ b/contrib/tools/git/packages.el @@ -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