Small enhancement for diff-mode
in #emacs: set the page-delimiter
variable to ^---
. So you can narrow down to a single file while watching a diff (C-x n p
).
You can do so in the diff-mode-hook
as illustrated below:
(use-package diff-mode
:ensure nil
:hook
(diff-mode . (lambda () (setq-local page-delimiter "^---"))))