mirror of
https://github.com/protesilaos/dotfiles.git
synced 2026-09-10 07:16:20 -04:00
emacs: make save-some-buffers show diff on demand
This commit is contained in:
parent
6ae140c912
commit
e39e51d8a6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue