From 6585e7aa048583bac0fc76f72dabed450bf81394 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Thu, 20 Oct 2022 08:43:18 -0400 Subject: Git gutter mode --- lisp/general.el | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'lisp') 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) -- cgit v1.2.1