Setting tab size in Emacs

Posted by Ryan on Stack Overflow See other posts from Stack Overflow or by Ryan
Published on 2010-03-25T16:09:06Z Indexed on 2010/03/25 16:13 UTC
Read the original article Hit count: 619

Filed under:
|
|
|

I'm using Emacs as an editor. I want to set the tab size to four spaces. In my .emacs file I have the following:

(setq default-tab-width 4)

I've also tried:

(set-default tab-width 4)

Either way, when I open emacs and try to tab, it inserts two spaces. Am I doing something wrong? It almost seems like its not seeing my .emacs file.

Any suggestions would be great! Thanks!

© Stack Overflow or respective owner

Related posts about emacs

Related posts about config