Add magit-delta

This commit is contained in:
David Morgan 2022-11-18 12:11:28 +00:00
parent 6b55b3ab10
commit 5df54bc253
Signed by: djm
GPG Key ID: C171251002C200F2
1 changed files with 9 additions and 1 deletions

View File

@ -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