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:
parent
79c1fcefcf
commit
3935d431fc
1 changed files with 4 additions and 0 deletions
|
@ -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]+")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue