(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:
parent
dc9b733ab8
commit
037d858dc1
1 changed files with 4 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue