dandavison/magit-delta
Use delta (https://github.com/dandavison/delta) when viewing diffs in Magit
{ "createdAt": "2020-04-18T16:45:46Z", "defaultBranch": "master", "description": "Use delta (https://github.com/dandavison/delta) when viewing diffs in Magit", "fullName": "dandavison/magit-delta", "homepage": "", "language": "Emacs Lisp", "name": "magit-delta", "pushedAt": "2023-10-31T20:56:09Z", "stargazersCount": 335, "topics": [ "color", "delta", "diff", "emacs", "git", "magit", "xterm-color" ], "updatedAt": "2025-11-14T20:14:47Z", "url": "https://github.com/dandavison/magit-delta"}This Emacs package provides a minor mode which configures Magit to use delta when displaying diffs.
-
Install delta.
-
Install magit-delta from MELPA.
-
Use
M-x magit-delta-modeto toggle between using delta, and normal magit behavior. To activate it automatically:(add-hook 'magit-mode-hook (lambda () (magit-delta-mode +1)))Or with
use-package(use-package magit-delta:hook (magit-mode . magit-delta-mode))
|
If you run emacs as a terminal application (emacs -nw) and colors are not being rendered correctly, then follow the instructions here: https://www.gnu.org/software/emacs/manual/html_node/efaq/Colors-on-a-TTY.html.