mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix #5030: leave rustfmt to :editor format
This commit is contained in:
@ -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,
|
||||||
|
Reference in New Issue
Block a user