Книга: Learning GNU Emacs, 3rd Edition

7.1.4 Changing Tab Width

7.1.4 Changing Tab Width

One problem with tabs is that there is no universal definition of what a tab means. In vi, the default tab width is four columns versus eight columns in Emacs. Further, Unix generally favors eight columns for tabs while some operating systems tend to use four spaces. Emacs uses eight columns by default no matter what platform it's running on. If you view another user's file in Emacs, Emacs interprets the tabs as eight columns each, throwing things off. For this reason, you might want to set your tab default to four columns by adding this line to your .emacs file:

(setq-default tab-width 4)

You have to press C-q Tab to have the modified tab width take effect.

Оглавление книги


Генерация: 1.430. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз