Refactor magit
All checks were successful
/ test (push) Successful in 23s

This commit is contained in:
Andrea Ciceri 2024-05-12 01:00:01 +02:00
parent 2df8189c91
commit cd9fc69f3d
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg

17
init.el
View file

@ -409,18 +409,21 @@
(which-key-setup-side-window-right))
(use-package magit
:hook ((magit-mode . magit-delta-mode))
:custom
(magit-todos-keyword-suffix "([^)]+):")
:config
(magit-todos-mode +1)
:bind (("C-c o g" . magit)))
(use-package magit-delta
:hook (magit-mode . magit-delta-mode))
(use-package magit-todos
:after magit
:custom (magit-todos-keyword-suffix "\\(?:([^)]+)\\)?:?")
:config (magit-todos-mode 1))
(use-package difftastic
:demand t
:bind (:map magit-blame-read-only-mode-map
("D" . difftastic-magit-show)
("S" . difftastic-magit-show))
("D" . difftastic-magit-show)
("S" . difftastic-magit-show))
:config
(eval-after-load 'magit-diff
'(transient-append-suffix 'magit-diff '(-1 -1)