bram85's Blog

bram85's Avatar Image
Tooting mostly about #emacs.
← All posts

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 "^---"))))
To like or reply, open original post on Emacs.ch