diff options
Diffstat (limited to 'lisp/general.el')
-rw-r--r-- | lisp/general.el | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lisp/general.el b/lisp/general.el index 6474c00..2428518 100644 --- a/lisp/general.el +++ b/lisp/general.el @@ -99,6 +99,26 @@ (global-hl-line-mode 1) (set-face-background 'hl-line "gray97") +;; Git +(use-package git-gutter + :ensure t + :hook (prog-mode . git-gutter-mode) + :config + (setq git-gutter:update-interval 0.02) + (setq git-gutter:window-width 1) + (set-face-background 'git-gutter:modified "dark magenta") + (set-face-background 'git-gutter:deleted "tomato") + (set-face-background 'git-gutter:added "forest green")) + +(custom-set-variables + '(git-gutter:modified-sign " ") + '(git-gutter:added-sign "++") + '(git-gutter:deleted-sign "--")) + +(use-package git-gutter-fringe + :ensure t) + + ;; Show flycheck always and after save (use-package flycheck :ensure t) (global-flycheck-mode) |