mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Move git-gutter config from ui/doom to feature/version-control
This commit is contained in:
@ -19,6 +19,19 @@
|
|||||||
;; Update git-gutter on focus (in case I was using git externally)
|
;; Update git-gutter on focus (in case I was using git externally)
|
||||||
(add-hook 'focus-in-hook 'git-gutter:update-all-windows)
|
(add-hook 'focus-in-hook 'git-gutter:update-all-windows)
|
||||||
|
|
||||||
|
;; places the git gutter outside the margins.
|
||||||
|
(setq-default fringes-outside-margins t)
|
||||||
|
;; thin fringe bitmaps
|
||||||
|
(define-fringe-bitmap 'git-gutter-fr:added
|
||||||
|
[224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224]
|
||||||
|
nil nil 'center)
|
||||||
|
(define-fringe-bitmap 'git-gutter-fr:modified
|
||||||
|
[224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224]
|
||||||
|
nil nil 'center)
|
||||||
|
(define-fringe-bitmap 'git-gutter-fr:deleted
|
||||||
|
[0 0 0 0 0 0 0 0 0 0 0 0 0 128 192 224 240 248]
|
||||||
|
nil nil 'center)
|
||||||
|
|
||||||
(@after evil
|
(@after evil
|
||||||
;; Refreshing git-gutter on ESC
|
;; Refreshing git-gutter on ESC
|
||||||
(advice-add 'evil-force-normal-state :after 'git-gutter)))
|
(advice-add 'evil-force-normal-state :after 'git-gutter)))
|
||||||
|
@ -87,18 +87,3 @@
|
|||||||
(overlay-put
|
(overlay-put
|
||||||
ov 'display (propertize " [...] " 'face 'doom-folded-face))))))
|
ov 'display (propertize " [...] " 'face 'doom-folded-face))))))
|
||||||
|
|
||||||
|
|
||||||
;; Show diffs with subtle lines in the fringe
|
|
||||||
(@after git-gutter-fringe
|
|
||||||
;; places the git gutter outside the margins.
|
|
||||||
(setq-default fringes-outside-margins t)
|
|
||||||
;; thin fringe bitmaps
|
|
||||||
(define-fringe-bitmap 'git-gutter-fr:added
|
|
||||||
[224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224]
|
|
||||||
nil nil 'center)
|
|
||||||
(define-fringe-bitmap 'git-gutter-fr:modified
|
|
||||||
[224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224 224]
|
|
||||||
nil nil 'center)
|
|
||||||
(define-fringe-bitmap 'git-gutter-fr:deleted
|
|
||||||
[0 0 0 0 0 0 0 0 0 0 0 0 0 128 192 224 240 248]
|
|
||||||
nil nil 'center))
|
|
||||||
|
Reference in New Issue
Block a user