From 3935d431fc4077cb0fd62cd948dc25020cbd3dc8 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 1 Sep 2020 01:41:39 -0400 Subject: [PATCH] tab-always-indent = nil Seems like a more sensible default to reindent the line if cursor is at BOL or in indentation, then insert literal indentation (tab or space * tab-width) otherwise. --- core/core-editor.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/core-editor.el b/core/core-editor.el index 740d6f970..e036de693 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -114,6 +114,10 @@ possible." (setq-default indent-tabs-mode nil tab-width 4) +;; Only indent the line when at BOL or in a line's indentation. Anywhere else, +;; insert literal indentation. +(setq-default tab-always-indent nil) + ;; Make `tabify' and `untabify' only affect indentation. Not tabs/spaces in the ;; middle of a line. (setq tabify-regexp "^\t* [ \t]+")