Skip to content

Commit

Permalink
tweak(emacs): disable magit-delta
Browse files Browse the repository at this point in the history
Too much hassle to get it working nicely. Magit might get
native support for diff highlighting in the future anyway.
  • Loading branch information
gekoke committed Dec 29, 2023
1 parent 3de70ad commit 7c03804
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions modules/nixos/programs/emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -454,29 +454,6 @@
"k" #'magit-section-backward-sibling
"j" #'magit-section-forward-sibling))

(use-package magit-delta
:hook (magit-mode . magit-delta-mode)
:init
(with-eval-after-load 'magit-delta
(set-face-attribute 'magit-diff-added-highlight nil :background "#006000")
(set-face-attribute 'magit-diff-added nil :background "#006000")
(set-face-attribute 'magit-diff-removed-highlight nil :background "#3f0001")
(set-face-attribute 'magit-diff-removed nil :background "#3f0001"))

(add-hook 'magit-delta-mode-hook
(lambda ()
(setq face-remapping-alist
(seq-difference face-remapping-alist
'((magit-diff-removed . default)
(magit-diff-removed-highlight . default)
(magit-diff-added . default)
(magit-diff-added-highlight . default))))))
:custom
(magit-delta-default-dark-theme "Monokai Extended")
(magit-delta-delta-args '("--color-only"
"--minus-style" "syntax auto"))
(magit-delta-hide-plus-minus-markers nil))

(use-package forge
:after magit
:custom
Expand Down

0 comments on commit 7c03804

Please sign in to comment.