Fix #2605: update editor/format module

This commit is contained in:
Henrik Lissner 2020-03-10 01:48:20 -04:00
parent 691ecee621
commit c2a0ac8b3e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 91 additions and 95 deletions

View file

@ -55,4 +55,4 @@ This is controlled by `+format-on-save-enabled-modes'."
;; 1. Enables partial reformatting (while preserving leading indentation),
;; 2. Applies changes via RCS patch, line by line, to protect buffer markers
;; and avoid any jarring cursor+window scrolling.
(advice-add #'format-all-buffer :override #'+format/buffer)
(advice-add #'format-all-buffer--with :around #'+format-buffer-a)