From 5df54bc253ba4dde746dc0474c9ec6afe0850862 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Fri, 18 Nov 2022 12:11:28 +0000 Subject: Add magit-delta --- .emacs.d/lisp/init-git.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.emacs.d/lisp/init-git.el b/.emacs.d/lisp/init-git.el index f6f05a5..3904e50 100644 --- a/.emacs.d/lisp/init-git.el +++ b/.emacs.d/lisp/init-git.el @@ -273,7 +273,8 @@ ("r" "Refresh state (update modeline)" my/magit-refresh-state) ("m" "Update master/main" my/magit-update-master) ("d" "Difftastic Diff (dwim)" my/magit-diff-with-difftastic) - ("s" "Difftastic Show" my/magit-show-with-difftastic)]) + ("s" "Difftastic Show" my/magit-show-with-difftastic) + ("D" "Toggle magit-delta-mode" my/toggle-delta-mode)]) (transient-append-suffix 'magit-dispatch "!" '("#" "Extra Magit Cmds" my/magit-extra-commands)) (define-key magit-status-mode-map (kbd "#") #'my/magit-extra-commands) @@ -284,6 +285,13 @@ (magit-diff-refine-ignore-whitespace nil) (magit-diff-highlight-trailing t)) +(use-package magit-delta + :config + (defun my/toggle-delta-mode () + (interactive) + (call-interactively #'magit-delta-mode) + (magit-refresh))) + (use-package magit-todos) (use-package forge -- cgit 1.4.1-2-gfad0