diff-mode: Continue to extend faces to edge of window

Due to a breaking change we have to request this explicitly in
Emacs 27.  Earlier Emacs versions do the right thing by default.

See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37774.
This commit is contained in:
Jonas Bernoulli 2020-03-20 23:42:39 +01:00
parent d777e2b31f
commit b0e7499009

View File

@ -74,6 +74,14 @@
(global-diff-hl-mode)
(add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh t))
(use-package diff-mode
:defer t
:config
(when (>= emacs-major-version 27)
(set-face-attribute 'diff-refine-changed nil :extend t)
(set-face-attribute 'diff-refine-removed nil :extend t)
(set-face-attribute 'diff-refine-added nil :extend t)))
(use-package dired
:defer t
:config (setq dired-listing-switches "-alh"))