Add difftastic

This commit is contained in:
Andrea Ciceri 2023-12-12 00:59:34 +01:00
parent d51c6f58fa
commit f811c9e658
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
2 changed files with 12 additions and 0 deletions

11
init.el
View file

@ -424,6 +424,17 @@
(magit-todos-mode +1)
:bind (("C-c o g" . magit)))
(use-package difftastic
:demand t
:bind (:map magit-blame-read-only-mode-map
("D" . difftastic-magit-show)
("S" . difftastic-magit-show))
:config
(eval-after-load 'magit-diff
'(transient-append-suffix 'magit-diff '(-1 -1)
[("D" "Difftastic diff (dwim)" difftastic-magit-diff)
("S" "Difftastic show" difftastic-magit-show)])))
(use-package sideline
:delight
:hook (flymake-mode . sideline-mode)

View file

@ -66,6 +66,7 @@ with epkgs; let
magit
magit-delta
magit-todos
difftastic
with-editor
diff-hl
corfu