From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Raffaele Ricciardi Newsgroups: gmane.emacs.help Subject: Re: No automatic tabs in Emacs? Date: Wed, 01 Dec 2010 22:14:46 +0100 Message-ID: <4CF6BAC6.2050107@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291959516 21796 80.91.229.12 (10 Dec 2010 05:38:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 05:38:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 06:38:32 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQvge-0001rs-CP for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 06:38:32 +0100 Original-Received: from localhost ([127.0.0.1]:59838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQuZ6-0005LI-CS for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 23:26:40 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 54 Original-X-Trace: individual.net Fbgyn0FgcAoXjbCYy32hjAf/5927Gi7PNYqb+732IYjzxx6bty Cancel-Lock: sha1:fq9VlLlaL6PPBDWfc1xl8qA5I3g= User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100328) In-Reply-To: Original-Xref: usenet.stanford.edu gnu.emacs.help:182744 X-Mailman-Approved-At: Thu, 09 Dec 2010 20:23:43 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77357 Archived-At: Sueroski wrote: > Hello everyone. > In first I have one info for you. Please send copy of your messanges to > my email (cuz I'm not on this mailing list and I want to have aswer). > > And the main problem. I started learning Emacs and I very like this > editor by now... it have great shortcuts - I can do everything without > mouse and it may make in future my programming faster (when I'll mainly > switched to Emacs... now I don't know about it so much) > And I'm flustrated about one think... so, I'm programmer (mainly Python > and PHP) and actually all editors gives me automatic adding tab... I > haven't this on Emacs and I don't know how to do it. I must on every > line press TAB and it's not good ;[ > So... what I must change to have auto tabs in Emacs? I searched most of > sites but everything telling how to select type of tabs, leight of tabs > etc. > > If you don't know what I mean under term "auto tab" then watch: > for example: > I'm writing on C my code: > > #include "stdio.h" > int main(){ > } > > And I wanna add something to main. I push Enter and write my code. In > Emacs I get this: > > #include "stdio.h" > int main(){ > printf("Hello World"); > } > > And I wanna get by default without pressing TAB, get this: > > #include "stdio.h" > int main(){ > printf("Hello World"); > } > > I know it's real but I don't know how to configure it (why Emacs don't > have this by default? if I edit *.c file it's probably know to I write C > code and I wanna tabs... ). > > Greetings and sorry for wasting time > > PS I think my English is not really bad but I can make few mistakes (I'm > really young by now and I'm not native ;[) then sorry for my English > Forget about using Emacs for programming. Emacs is not an IDE. Regarding your issue, read here: http://www.emacswiki.org/emacs/AutoIndentation