hey all,
im looking to tell emacs to insert spaces instead of tabs.
anyone got it in their .emacs already? if so please do show..
-Stephen
im looking to tell emacs to insert spaces instead of tabs.
anyone got it in their .emacs already? if so please do show..
-Stephen
-
Re: elisp for tab to always create spaces?
Tue, July 6, 2004 - 6:17 PMI believe that :
(setq-default indent-tabs-mode nil)
will do what you want. You can try it and check it with "whitespace-mode" which highlights tabs and spaces differently.
Also "untabify" converts tabs to spaces in the region. -
-
Re: elisp for tab to always create spaces?
Wed, July 7, 2004 - 6:35 AMthanks, that did it! and untabify works quite well. (i couldnt find whitespace mode, though, and whitespace-global-mode didnt seem to show tabs differently.)
ive been on visual studio so long that i lost my old .emacs file. its terrible. so im rebuilding it now. my next things are column-number being displayed at the bottom next to line number, and getting the indenting like i like it in C,Perl,and Java modes. i used to have the oreilly "GNU Emacs Extensions", which i liked back then, so ill prob go get a new copy, and get my elisp on. thanks for the help. :)
-