Emacs Lisp MIT

magit-delta

Use delta (https://github.com/dandavison/delta) when viewing diffs in Magit

D

dandavison

Dernière activité 31 juil. 2026
dandavison/magit-delta

353

étoiles

17

forks

19

issues ouvertes

colordeltadiffemacsgitmagitxterm-color

Ce README est souvent en anglais.

This Emacs package provides a minor mode which configures Magit to use delta when displaying diffs.

  1. Install delta.

  2. Install magit-delta from MELPA.

  3. Use M-x magit-delta-mode to 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))


image

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.

Credit

Projets similaires

A syntax-highlighting pager for git, diff, grep, rg --json, and blame output

Rustcolor-themesdeltadiff
Ddandavison
32,4 k étoiles585

A Sublime Text 2/3 plugin to see git diff in gutter

Pythoncolor-schemegitguttersublime-text
Jjisaacks
3,9 k étoiles229

A Vim plugin which shows git diff markers in the sign column and stages/previews/undoes hunks and partial hunks.

Vim Scriptdiffgitgitgutter
Aairblade
8,5 k étoiles300