From: Christophe TROESTLER Date: Fri, 8 Dec 2023 19:39:31 +0000 (+0200) Subject: (rust-ts-mode): Set electric-indent-chars X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=037d858dc1a;p=emacs.git (rust-ts-mode): Set electric-indent-chars * lisp/progmodes/rust-ts-mode.el (rust-ts-mode): Set electric-indent-chars (bug#67701). --- diff --git a/lisp/progmodes/rust-ts-mode.el b/lisp/progmodes/rust-ts-mode.el index 8127aa956f4..cc803f5f91a 100644 --- a/lisp/progmodes/rust-ts-mode.el +++ b/lisp/progmodes/rust-ts-mode.el @@ -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"