Suppress format-all-mode error when no formatter is available
Having this on renders it difficult to work with debug-on-error, since a _lot_ of filetypes don't have formatters
This commit is contained in:
parent
42d5da83cc
commit
57e9b89b80
1 changed files with 4 additions and 0 deletions
|
@ -62,3 +62,7 @@ This is controlled by `+format-on-save-enabled-modes'."
|
||||||
;; 2. Applies changes via RCS patch, line by line, to protect buffer markers
|
;; 2. Applies changes via RCS patch, line by line, to protect buffer markers
|
||||||
;; and avoid any jarring cursor+window scrolling.
|
;; and avoid any jarring cursor+window scrolling.
|
||||||
(advice-add #'format-all-buffer--with :around #'+format-buffer-a)
|
(advice-add #'format-all-buffer--with :around #'+format-buffer-a)
|
||||||
|
|
||||||
|
;; format-all-mode "helpfully" raises an error when it doesn't know how to
|
||||||
|
;; format a buffer.
|
||||||
|
(add-to-list 'debug-ignored-errors "^Don't know how to format ")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue