Fix load order of vc-gutter default style

So you can unset `+vc-gutter-default-style` in your config.el to disable
it.
This commit is contained in:
Henrik Lissner 2020-02-27 14:52:53 -05:00
parent afa6b7ab90
commit 4830f9784f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -90,11 +90,11 @@ is deferred until the file is saved. Respects `git-gutter:disabled-modes'."
;; subtle diff indicators in the fringe ;; subtle diff indicators in the fringe
(when +vc-gutter-default-style (after! git-gutter-fringe
;; standardize default fringe width (when +vc-gutter-default-style
(if (fboundp 'fringe-mode) (fringe-mode '4)) ;; standardize default fringe width
(if (fboundp 'fringe-mode) (fringe-mode '4))
(after! git-gutter-fringe
;; places the git gutter outside the margins. ;; places the git gutter outside the margins.
(setq-default fringes-outside-margins t) (setq-default fringes-outside-margins t)
;; thin fringe bitmaps ;; thin fringe bitmaps
@ -103,8 +103,10 @@ is deferred until the file is saved. Respects `git-gutter:disabled-modes'."
(define-fringe-bitmap 'git-gutter-fr:modified [224] (define-fringe-bitmap 'git-gutter-fr:modified [224]
nil nil '(center repeated)) nil nil '(center repeated))
(define-fringe-bitmap 'git-gutter-fr:deleted [128 192 224 240] (define-fringe-bitmap 'git-gutter-fr:deleted [128 192 224 240]
nil nil 'bottom)) nil nil 'bottom)))
(after! flycheck
(after! flycheck
(when +vc-gutter-default-style
;; let diff have left fringe, flycheck can have right fringe ;; let diff have left fringe, flycheck can have right fringe
(setq flycheck-indication-mode 'right-fringe) (setq flycheck-indication-mode 'right-fringe)
;; A non-descript, left-pointing arrow ;; A non-descript, left-pointing arrow