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.
This commit is contained in:
Henrik Lissner 2020-09-01 01:41:39 -04:00
parent 79c1fcefcf
commit 3935d431fc
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -114,6 +114,10 @@ possible."
(setq-default indent-tabs-mode nil (setq-default indent-tabs-mode nil
tab-width 4) 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 ;; Make `tabify' and `untabify' only affect indentation. Not tabs/spaces in the
;; middle of a line. ;; middle of a line.
(setq tabify-regexp "^\t* [ \t]+") (setq tabify-regexp "^\t* [ \t]+")