Emacs tips

Purpose of this document

Main goal of this page is to give some tips about the powerfull Emacs all-in-one software.

program version
emacs 21.3.1

Tabulations and spaces

Emacs uses both tabulations and spaces to indent lines. The question is how to choose to indent only with tabulations or only with spaces. For an Emacs session, to indent with spaces only, and never with tabulations, enter the following command:

M-x set-variable<RET> indent-tabs-mode<RET> nil

To force permanently Emacs to indent only with spaces add the following line in your .emacs file.

~/.emacs
...
(setq-default indent-tabs-mode nil); # indent only with spaces (not with TABs)
...

For more precise information follow the links:

Useful links

link comment
GNU Emacs the GNU Emacs web site
GNU Emacs Manuals several online manuals about Emacs and its extensions
GNU Emacs Manual the Delorie software Emacs page