LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-15-2004, 10:00 PM   #1
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
emacs - convert auto indent tabs to spaces?


Is there a way I can make emacs only use spaces instead of tabs and spaces when it indents?

The reason I ask is that my code looks fine in emacs, but it doesn't look so good in other editors because the tab size is different. Is there a way to avoid tabs all together so I don't have this problem?
 
Old 04-15-2004, 10:14 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
As an immediate measure you could use
M-x untabify

Put
(setq-default indent-tabs-mode nil)
in your .emacs for permanent results :)


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tabs to spaces in emacs, not working in tcl mode ratm1286 Linux - Software 3 05-08-2005 05:15 PM
indent cpp file with emacs~ black Linux - Software 10 09-10-2004 12:43 AM
Emacs problem with tabs Nylex Linux - Software 2 09-03-2004 04:28 AM
emacs: requiring tabs in all indentation prell Linux - Software 0 08-24-2004 09:32 AM
failed on modifying indent on emacs~ black Linux - Software 0 07-22-2004 11:59 PM


All times are GMT -5. The time now is 05:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration