Fix #2605: update editor/format module
This commit is contained in:
parent
691ecee621
commit
c2a0ac8b3e
3 changed files with 91 additions and 95 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue