1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00

(rust-ts-mode): Set electric-indent-chars

* lisp/progmodes/rust-ts-mode.el (rust-ts-mode):
Set electric-indent-chars (bug#67701).
This commit is contained in:
Christophe TROESTLER 2023-12-08 21:39:31 +02:00 committed by Dmitry Gutov
parent dc9b733ab8
commit 037d858dc1

View File

@ -435,6 +435,10 @@ delimiters < and >'s."
(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"