From fd87e0ed4c52bed31798c0f83f8f121d2659f869 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Thu, 5 Aug 2021 07:47:38 +0100 Subject: Play around with a few things --- emacs-prelude/personal/lisp/init-git.el | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'emacs-prelude/personal/lisp/init-git.el') diff --git a/emacs-prelude/personal/lisp/init-git.el b/emacs-prelude/personal/lisp/init-git.el index ac5ce4b..7745af8 100644 --- a/emacs-prelude/personal/lisp/init-git.el +++ b/emacs-prelude/personal/lisp/init-git.el @@ -8,16 +8,28 @@ (defun my/magit-refresh-state () (interactive) (dolist (buf (buffer-list)) - (when (and (not (buffer-modified-p buf)) - (buffer-file-name buf) - (file-exists-p (buffer-file-name buf)) - (file-in-directory-p (buffer-file-name buf) (magit-toplevel))) - (with-current-buffer buf - (vc-refresh-state))))) + (when (and (not (buffer-modified-p buf)) + (buffer-file-name buf) + (file-exists-p (buffer-file-name buf)) + (file-in-directory-p (buffer-file-name buf) (magit-toplevel))) + (with-current-buffer buf + (vc-refresh-state))))) :config (key-chord-define-global "UU" 'my/magit-set-upstream) (key-chord-define-global "RR" 'my/magit-refresh-state) - :custom (magit-diff-refine-hunk 'all)) + :custom-face + (diff-added ((t (:foreground "green4")))) + (magit-diff-added ((t (:foreground "green4")))) + (magit-diff-added-highlight ((t (:foreground "green4")))) + (diff-removed ((t (:foreground "red3")))) + (magit-diff-removed ((t (:foreground "red3")))) + (magit-diff-removed-highlight ((t (:foreground "red3")))) + :custom + (magit-diff-refine-hunk 'all) + (magit-diff-paint-whitespace t) + (magit-diff-paint-whitespace-lines 'all) + (magit-diff-highlight-trailing t) + (magit-diff-highlight-indentation t)) (prelude-require-package 'forge) (use-package forge -- cgit 1.4.1-2-gfad0