knorv
knorv

Reputation: 50117

How do I instruct emacs to use 4 spaces instead of the tab character for all indentation?

What do I put in my .emacs file to use four spaces instead of the tab character for all indentation?

Upvotes: 1

Views: 641

Answers (1)

outis
outis

Reputation: 77400

This behavior is controlled by the variable indent-tabs-mode. Put:

(setq-default indent-tabs-mode nil)

in your .emacs to use spaces.

Upvotes: 4

Related Questions