Fix #5030: leave rustfmt to :editor format
This commit is contained in:
parent
980b3730f1
commit
b0e59ccdcc
2 changed files with 1 additions and 3 deletions
|
@ -5,7 +5,6 @@
|
||||||
sql-mode ; sqlformat is currently broken
|
sql-mode ; sqlformat is currently broken
|
||||||
tex-mode ; latexindent is broken
|
tex-mode ; latexindent is broken
|
||||||
latex-mode
|
latex-mode
|
||||||
rustic-mode ; handled by `rustic-rustfmt'
|
|
||||||
org-msg-edit-mode) ; doesn't need a formatter
|
org-msg-edit-mode) ; doesn't need a formatter
|
||||||
"A list of major modes in which to reformat the buffer upon saving.
|
"A list of major modes in which to reformat the buffer upon saving.
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,7 @@
|
||||||
(set-popup-rule! "^\\*rustic-compilation" :vslot -1)
|
(set-popup-rule! "^\\*rustic-compilation" :vslot -1)
|
||||||
|
|
||||||
;; Leave automatic reformatting to the :editor format module.
|
;; Leave automatic reformatting to the :editor format module.
|
||||||
(set-formatter! 'rustfmt #'rustic-format-buffer :modes '(rustic-mode))
|
(setq rustic-babel-format-src-block nil
|
||||||
(setq rustic-babel-format-src-block (featurep! :editor format +onsave)
|
|
||||||
rustic-format-trigger nil)
|
rustic-format-trigger nil)
|
||||||
|
|
||||||
;; HACK `rustic-flycheck' adds all these hooks in disruptive places. Instead,
|
;; HACK `rustic-flycheck' adds all these hooks in disruptive places. Instead,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue