项目作者: dandavison

项目描述 :
Use delta (https://github.com/dandavison/delta) when viewing diffs in Magit
高级语言: Emacs Lisp
项目地址: git://github.com/dandavison/magit-delta.git
创建时间: 2020-04-18T16:45:46Z
项目社区:https://github.com/dandavison/magit-delta

开源协议:MIT License

下载


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:

    1. (add-hook 'magit-mode-hook (lambda () (magit-delta-mode +1)))

    Or with use-package

    1. (use-package magit-delta
    2. :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