Fix #5030: leave rustfmt to :editor format

This commit is contained in:
Henrik Lissner 2021-05-11 16:59:50 -04:00
parent 980b3730f1
commit b0e59ccdcc
2 changed files with 1 additions and 3 deletions

View File

@ -5,7 +5,6 @@
sql-mode ; sqlformat is currently broken
tex-mode ; latexindent is broken
latex-mode
rustic-mode ; handled by `rustic-rustfmt'
org-msg-edit-mode) ; doesn't need a formatter
"A list of major modes in which to reformat the buffer upon saving.

View File

@ -20,8 +20,7 @@
(set-popup-rule! "^\\*rustic-compilation" :vslot -1)
;; Leave automatic reformatting to the :editor format module.
(set-formatter! 'rustfmt #'rustic-format-buffer :modes '(rustic-mode))
(setq rustic-babel-format-src-block (featurep! :editor format +onsave)
(setq rustic-babel-format-src-block nil
rustic-format-trigger nil)
;; HACK `rustic-flycheck' adds all these hooks in disruptive places. Instead,