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:
parent
dc9b733ab8
commit
037d858dc1
@ -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…
Reference in New Issue
Block a user