From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: egarrulo Newsgroups: gmane.emacs.help Subject: Re: No automatic tabs in Emacs? Date: Wed, 01 Dec 2010 22:15:24 +0100 Message-ID: <4CF6BAEC.2070400@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 1291238136 26654 80.91.229.12 (1 Dec 2010 21:15:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Dec 2010 21:15:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Sueroski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 01 22:15:31 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 1PNu1T-0006Dr-BL for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Dec 2010 22:15:31 +0100 Original-Received: from localhost ([127.0.0.1]:40080 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNu1S-0008Bm-ET for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Dec 2010 16:15:30 -0500 Original-Received: from [140.186.70.92] (port=51130 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNu0s-00089c-8g for help-gnu-emacs@gnu.org; Wed, 01 Dec 2010 16:14:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNu0q-0003Mf-Jt for help-gnu-emacs@gnu.org; Wed, 01 Dec 2010 16:14:54 -0500 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:62251) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNu0q-0003Ln-9G for help-gnu-emacs@gnu.org; Wed, 01 Dec 2010 16:14:52 -0500 Original-Received: by wyj26 with SMTP id 26so12362wyj.0 for ; Wed, 01 Dec 2010 13:14:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=NTEOr1vDzwS0OSLDYWhSrFVHj8KxJ4c+OSSbvu7+soo=; b=mpmohleJoUh6STaClpliErJKGR7xuRrmIdfmBSZDUBGtMmCfd8NDHqQLbI3+B7lXh0 Ps+4tdcEJTBBxNtVQbhDa8MpCajAqDlpfLeM6INqqcsuJI27qjQKxBaJS9DZgp+h/X1R IvY0XYYX4y5CWIMT6ZVsKmYajnoA2QnSgY6uc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=isRRUWgIAkt5aZVSxgBvNfd+WUZ8e7qDVUTezpgctZIukrL93ag3bXNnPa5NqN8yV/ DADplYBDMi8ezTmEOSt9scVwsry1KSBTFgmwImqvvYQUfvG09F21lfQ6LwqxN9hYaBod SGJTLdwZ3HH/YPRUgTlRdmAtMzFPoQtfHElSo= Original-Received: by 10.227.69.201 with SMTP id a9mr10147909wbj.120.1291238087322; Wed, 01 Dec 2010 13:14:47 -0800 (PST) Original-Received: from [192.168.1.100] (dynamic-adsl-94-36-143-196.clienti.tiscali.it [94.36.143.196]) by mx.google.com with ESMTPS id q18sm297080wbe.11.2010.12.01.13.14.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 01 Dec 2010 13:14:46 -0800 (PST) User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100328) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:75472 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