Attempt to use git-gutter-fringe only in graphics mode

This commit is contained in:
Gergely Polonkai 2016-11-09 10:13:43 +01:00
parent 50bfccd7a8
commit 613d2c63ea

View File

@ -282,14 +282,19 @@
(drag-stuff-global-mode t)) (drag-stuff-global-mode t))
;; Git gutter ;; Git gutter
(use-package git-gutter-fringe ;; If we are in text-only mode, there is no fringe.
(let ((gitgutter-package
(if (display-graphic-p)
"git-gutter-fringe"
"git-gutter")))
(eval `(use-package ,gitgutter-package
:ensure t :ensure t
:demand :demand
:config :config
(global-git-gutter-mode t) (global-git-gutter-mode t)
:bind :bind
(:map gpolonkai/pers-map (:map gpolonkai/pers-map
("gg" . git-gutter:update-all-windows))) ("gg" . git-gutter:update-all-windows)))))
;; Org mode ;; Org mode
(use-package org (use-package org