diff options
author | Matthew Kosarek <mattkae@protonmail.com> | 2022-10-20 08:43:18 -0400 |
---|---|---|
committer | Matthew Kosarek <mattkae@protonmail.com> | 2022-10-20 08:43:18 -0400 |
commit | 6585e7aa048583bac0fc76f72dabed450bf81394 (patch) | |
tree | 96193219d25a353ebff22fd9e9e62a7adc4b574d /lisp | |
parent | 6cbc3e5f85e86ccce5a6b6dd40abd41464d371d4 (diff) |
Git gutter mode
Diffstat (limited to 'lisp')
-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) |