Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 04-15-2004, 10:00 PM   #1
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
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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

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



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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:04 PM.

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