GNU Info

Info Node: (efaq)Changing the length of a Tab

(efaq)Changing the length of a Tab


Next: Inserting > at the beginning of each line Prev: Evaluating Emacs Lisp code Up: Common requests
Enter node , (file) or (file)node

How do I change Emacs's idea of the <TAB> character's length?
=============================================================

   Set the variable `default-tab-width'.  For example, to set <TAB>
stops every 10 characters, insert the following in your `.emacs' file:

     (setq default-tab-width 10)

   Do not confuse variable `tab-width' with variable `tab-stop-list'.
The former is used for the display of literal <TAB> characters.  The
latter controls what characters are inserted when you press the <TAB>
character in certain modes.


automatically generated by info2www version 1.2.2.9