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
1 changed files with 13 additions and 8 deletions

21
init.el
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.
:ensure t (let ((gitgutter-package
:demand (if (display-graphic-p)
:config "git-gutter-fringe"
(global-git-gutter-mode t) "git-gutter")))
:bind (eval `(use-package ,gitgutter-package
(:map gpolonkai/pers-map :ensure t
("gg" . git-gutter:update-all-windows))) :demand
:config
(global-git-gutter-mode t)
:bind
(:map gpolonkai/pers-map
("gg" . git-gutter:update-all-windows)))))
;; Org mode ;; Org mode
(use-package org (use-package org