Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dandavison/magit-delta
Use delta (https://github.com/dandavison/delta) when viewing diffs in Magit
https://github.com/dandavison/magit-delta
color delta diff emacs git magit xterm-color
Last synced: 1 day ago
JSON representation
Use delta (https://github.com/dandavison/delta) when viewing diffs in Magit
- Host: GitHub
- URL: https://github.com/dandavison/magit-delta
- Owner: dandavison
- License: mit
- Created: 2020-04-18T16:45:46.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-31T20:56:09.000Z (over 1 year ago)
- Last Synced: 2025-01-29T10:12:19.592Z (9 days ago)
- Topics: color, delta, diff, emacs, git, magit, xterm-color
- Language: Emacs Lisp
- Homepage:
- Size: 45.9 KB
- Stars: 304
- Watchers: 12
- Forks: 11
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This Emacs package provides a minor mode which configures [Magit](https://github.com/magit/magit) to use [delta](https://github.com/dandavison/delta) when displaying diffs.
1. Install [delta](https://github.com/dandavison/delta).
2. Install magit-delta from [MELPA](https://melpa.org/#/getting-started).
3. Use `M-x magit-delta-mode` to toggle between using delta, and normal magit behavior.
To activate it automatically:
```emacs-lisp
(add-hook 'magit-mode-hook (lambda () (magit-delta-mode +1)))
```
Or with `use-package`
```emacs-lisp
(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.
### Credit
- [magit](https://github.com/magit/magit)
- [xterm-color](https://github.com/atomontage/xterm-color)