From e2aeded4a56889fe2154cbdcbc06b8ae8134af91 Mon Sep 17 00:00:00 2001 From: Christophe TROESTLER Date: Fri, 8 Dec 2023 21:39:31 +0200 Subject: [PATCH] (rust-ts-mode): Set electric-indent-chars * lisp/progmodes/rust-ts-mode.el (rust-ts-mode): Set electric-indent-chars (bug#67701). --- lisp/progmodes/rust-ts-mode.el | 4 ++++ 1 file changed, 4 insertions(+) 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" -- 2.39.2