elisp for tab to always create spaces?

topic posted Tue, July 6, 2004 - 3:10 PM by  Stephen
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
posted by:
Stephen
  • Re: elisp for tab to always create spaces?

    Tue, July 6, 2004 - 6:17 PM
    I 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 AM
      thanks, 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. :)

Recent topics in "Emacs"

Topic Author Replies Last Post
eMergency eLisp 0 January 25, 2008
pretty quiet 0 September 14, 2007
Emacs 22 released Theron Ttlåx 0 June 5, 2007
ViewMail with smtpmail? offlinealex 0 November 29, 2006