View Full Version : how to configure emacs indentation?
May 11th, 2007, 02:41 AM
umm, so i've tried a few things already, but to no avail. how do i change the default indentation size for emacs from 8 spaces to 4?
May 11th, 2007, 07:22 AM
I find this usefull (also, spaces instead of tabs) - put into your .emacs:
(setq-default indent-tabs-mode nil) ; always replace tabs with spaces
(setq-default tab-width 4) ; set tab width to 4 for all buffers
You should check-out http://www.emacswiki.org/, there are some great tips over there. Take few hours of time to browse through it if emacs is primary editor of your choice.
May 11th, 2007, 07:44 AM
awesome, it worked. thanks 8-)
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.