]> git.eshelyaron.com Git - emacs.git/commitdiff
(rust-ts-mode): Set electric-indent-chars
authorChristophe TROESTLER <Christophe.TROESTLER@umons.ac.be>
Fri, 8 Dec 2023 19:39:31 +0000 (21:39 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 9 Dec 2023 19:12:46 +0000 (20:12 +0100)
* lisp/progmodes/rust-ts-mode.el (rust-ts-mode):
Set electric-indent-chars (bug#67701).

lisp/progmodes/rust-ts-mode.el

index c4efea0e7d2b159690eecaf43eb6c1cc5a81d0d2..ac860969daffafd5a4aba585a5e6c196a99278d7 100644 (file)
@@ -459,6 +459,10 @@ See `prettify-symbols-compose-predicate'."
     (setq-local indent-tabs-mode nil
                 treesit-simple-indent-rules rust-ts-mode--indent-rules)
 
+    ;; Electric
+    (setq-local electric-indent-chars
+                (append "{}():;,#" electric-indent-chars))
+
     ;; Navigation.
     (setq-local treesit-defun-type-regexp
                 (regexp-opt '("enum_item"