Previous: Convert Tabs to Spaces and Vice Versa, Up: Tabs versus Spaces [Index]
The variable tab-always-indent
tweaks the behavior of the ‘<TAB>’
(‘indent-for-tab-command’) command. The default value, ‘t’, gives the behavior
described in *note Indentation::. If you change the value to the symbol
‘complete’, then ‘<TAB>’ first tries to indent the current line, and if the
line was already indented, it tries to complete the text at point. If the
value is ‘nil’, then ‘<TAB>’ indents the current line only if point is at the
left margin or in the line’s indentation; otherwise, it inserts a tab
character.