blob: 23f4c45e95a1076e674d9f77725e47a64b55ff5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<h4 class="subsection">Adjustable Tab Stops</h4> <p>This section explains the mechanism for user-specified tab stops and the mechanisms that use and set them. The name “tab stops” is used because the feature is similar to that of the tab stops on a typewriter. The feature works by inserting an appropriate number of spaces and tab characters to reach the next tab stop column; it does not affect the display of tab characters in the buffer (see <a href="usual-display">Usual Display</a>). Note that the <tt class="key">TAB</tt> character as input uses this tab stop feature only in a few major modes, such as Text mode. See <a href="https://www.gnu.org/software/emacs/manual/html_node/emacs/Tab-Stops.html#Tab-Stops">Tab Stops</a> in <cite>The GNU Emacs Manual</cite>. </p> <dl> <dt id="tab-to-tab-stop">Command: <strong>tab-to-tab-stop</strong>
</dt> <dd><p>This command inserts spaces or tabs before point, up to the next tab stop column defined by <code>tab-stop-list</code>. </p></dd>
</dl> <dl> <dt id="tab-stop-list">User Option: <strong>tab-stop-list</strong>
</dt> <dd>
<p>This variable defines the tab stop columns used by <code>tab-to-tab-stop</code>. It should be either <code>nil</code>, or a list of increasing integers, which need not be evenly spaced. The list is implicitly extended to infinity through repetition of the interval between the last and penultimate elements (or <code>tab-width</code> if the list has fewer than two elements). A value of <code>nil</code> means a tab stop every <code>tab-width</code> columns. </p> <p>Use <kbd>M-x edit-tab-stops</kbd> to edit the location of tab stops interactively. </p>
</dd>
</dl><div class="_attribution">
<p class="_attribution-p">
Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
<a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Indent-Tabs.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Indent-Tabs.html</a>
</p>
</div>
|