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=e2aeded4a56889fe2154cbdcbc06b8ae8134af91;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 c4efea0e7d2..ac860969daf 100644 --- a/lisp/progmodes/rust-ts-mode.el +++ b/lisp/progmodes/rust-ts-mode.el @@ -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"