diff options
author | Alex Branham <alex.branham@gmail.com> | 2020-10-14 07:26:58 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-10-14 07:26:58 +0200 |
commit | 64c8511664420498b9769b098a31300e2ab58c2d (patch) | |
tree | a68ea810ce59acfa71ea5a5317b0aa752c7d544c /doc/emacs/indent.texi | |
parent | 5474603c4c83a0ae2c4a156dd61fd3ea103049ee (diff) | |
download | emacs-64c8511664420498b9769b098a31300e2ab58c2d.tar.gz emacs-64c8511664420498b9769b098a31300e2ab58c2d.tar.bz2 emacs-64c8511664420498b9769b098a31300e2ab58c2d.zip |
Add a new variable tab-first-completion
* doc/emacs/indent.texi (Indent Convenience): Mention it.
* doc/lispref/text.texi (Mode-Specific Indent): Document it.
* lisp/indent.el (tab-first-completion): New variable (bug#34787).
(indent-for-tab-command): Use it.
Diffstat (limited to 'doc/emacs/indent.texi')
-rw-r--r-- | doc/emacs/indent.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/emacs/indent.texi b/doc/emacs/indent.texi index d0360ac333b..d6395ef155d 100644 --- a/doc/emacs/indent.texi +++ b/doc/emacs/indent.texi @@ -250,6 +250,13 @@ Completion}). If the value is @code{nil}, then @key{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. +@vindex tab-first-completion + If @code{tab-always-indent} is @code{complete}, whether to expand or +indent can be further customized via the @code{tab-first-completion} +variable. For instance, if that variable is @code{eol}, only complete +if point is at the end of a line. @xref{Mode-Specific Indent,,, +elisp, The Emacs Lisp Reference Manual} for further details. + @cindex Electric Indent mode @cindex mode, Electric Indent @findex electric-indent-mode |