summaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2026-03-25 13:42:37 +0000
committertslil <tslil@posteo.de>2026-03-25 13:42:42 +0000
commit52b2374019f4f46fe53e7e9e0a96c07b0ca134fb (patch)
tree238c1ee9daa99ce0f2a491f0ceed15cb578a0a7a /emacs
parent648a4c24be40b9fbfed3c6556b90632e7e551317 (diff)
[emacs] for some reason rust-mode uses rust fmt, so this is a temp hack to make the hook usable on 2024 codebases
Diffstat (limited to 'emacs')
-rw-r--r--emacs/inits/20-programming.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/emacs/inits/20-programming.el b/emacs/inits/20-programming.el
index ffa99e7..dc6612c 100644
--- a/emacs/inits/20-programming.el
+++ b/emacs/inits/20-programming.el
@@ -1,4 +1,4 @@
-;; Time-stamp: <2026-03-21 08h23 GMT (8a60818d)>
+;; Time-stamp: <2026-03-25 11h49 GMT (242d7eec)>
;; -----------------------------------------------------------------------------
;; General setup
@@ -263,8 +263,8 @@
(setq rust-indent-offset 4
rust-indent-method-chain t
rust-indent-where-clause t
- rust-format-on-save t))
-
+ rust-format-on-save t
+ rust-rustfmt-switches '("--edition" "2024")))
;; -------------------------------------------------------------------
;; Misc languages