     (spacemacs/activate-evil-leader-for-map 'gist-list-menu-mode-map)
     ))
 
-(if git-gutter-use-fringe
-    ;; Using fringe
-    (mapc (lambda (x) (push x git-packages))
-          '(
-            git-gutter-fringe
-            ))
-  ;; Not using fringe
-  (mapc (lambda (x) (push x git-packages))
-        '(
-          git-gutter
-          )))
+(defun init-git-gutter ()
+  "Common initialization of git-gutter."
+  (git-gutter-mode)
+  (setq git-gutter:modified-sign " ")
+  (setq git-gutter:added-sign "+")
+  (setq git-gutter:deleted-sign "-")
+  (spacemacs|hide-lighter git-gutter-mode)
+  (if (and git-gutter-use-fringe global-linum-mode) (git-gutter:linum-setup)))
 
 (defun git/init-git-gutter ()
   (use-package git-gutter
     :commands git-gutter-mode
     :init
     (progn
-      (git-gutter-mode)
-
-      (setq git-gutter:modified-sign " ")
-      (setq git-gutter:added-sign "+")
-      (setq git-gutter:deleted-sign "-")
-
-      (spacemacs|hide-lighter git-gutter-mode)
-      (if global-linum-mode (git-gutter:linum-setup))
+      (init-git-gutter)
       (add-to-hooks 'git-gutter-mode '(markdown-mode-hook
                                        org-mode-hook
                                        prog-mode-hook)))))

    :init
    (progn
      (defun git/load-git-gutter ()
        "Lazy load git gutter and choose between fringe and no fringe
implementation."
        (if (display-graphic-p)
            (progn
              (require 'git-gutter-fringe)
              (git-gutter-mode))
          (git-gutter-mode)
          (if global-linum-mode (git-gutter:linum-setup)))
        (spacemacs|hide-lighter git-gutter-mode))
      (add-to-hooks 'git/load-git-gutter '(markdown-mode-hook
                                           org-mode-hook
                                           prog-mode-hook)))

          magit-gh-pulls
          )))

(if git-gutter-use-fringe
    (push 'git-gutter-fringe git-packages)
  (push 'git-gutter git-packages))

(defun git/init-gist ()
  (use-package gist
    :defer t
