Attempt to use git-gutter-fringe only in graphics mode
This commit is contained in:
parent
50bfccd7a8
commit
613d2c63ea
9
init.el
9
init.el
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user