emacs: make save-some-buffers show diff on demand

This commit is contained in:
Protesilaos Stavrou 2024-12-11 13:10:35 +02:00
parent 6ae140c912
commit e39e51d8a6
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -2356,6 +2356,11 @@ key bindings.
(setq echo-keystrokes-help nil) ; Emacs 30
(setq epa-keys-select-method 'minibuffer) ; Emacs 30
(add-to-list 'save-some-buffers-action-alist
(list "d"
(lambda (buffer) (diff-buffer-with-file (buffer-file-name buffer)))
"show diff between the buffer and its file"))
;; Keys I unbind here are either to avoid accidents or to bind them
;; elsewhere later in the configuration.
:bind