fix(format): consolidate save-without-formatting keybind

It's too much hassle to claim either 'SPC b s' or 'SPC f s' for the
saving-without-formatting command (and to justify why one over the
other), so porque no los dos? Plus, I now leave 'C-x C-s' (save-buffer)
alone; principle of least surprise and what not.

Fix: #8460
Ref: https://xkcd.com/1172
This commit is contained in:
Henrik Lissner
2025-09-20 14:22:15 -04:00
parent 3436b2c3ba
commit fffefc3118
2 changed files with 2 additions and 3 deletions

View File

@@ -47,8 +47,7 @@ This is controlled by `+format-on-save-disabled-modes'."
;; UX: Use prefix-arg on `save-buffer' or `basic-save-buffer' to inhibit
;; format-on-save behavior.
(define-key apheleia-mode-map [remap basic-save-buffer] #'+format/save-buffer-no-reformat)
(define-key apheleia-mode-map [remap save-buffer] #'+format/save-buffer)
(define-key apheleia-mode-map [remap basic-save-buffer] #'+format/save-buffer)
;; HACK: Apheleia suppresses notifications that the current buffer has
;; changed, so plugins that listen for them need to be manually informed: