From 2b931b134cbab91c765c608911ec598165f30ac5 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Thu, 26 Jun 2025 11:25:04 -0400 Subject: [PATCH] Add electric-indent-chars --- init.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.el b/init.el index 736570c..ffe50cf 100644 --- a/init.el +++ b/init.el @@ -329,6 +329,10 @@ ;; when the window is narrower than `truncate-partial-width-windows' characters. (setq truncate-partial-width-windows nil) +;; Configure automatic indentation to be triggered exclusively by newline and +;; DEL (backspace) characters. +(setq-default electric-indent-chars '(?\n ?\^?)) + ;; Prefer spaces over tabs. Spaces offer a more consistent default compared to ;; 8-space tabs. This setting can be adjusted on a per-mode basis as needed. (setq-default indent-tabs-mode nil