From 037d858dc1a70508673186ae929f87df7068ea29 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 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" -- 2.39.2