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