From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sueroski Newsgroups: gmane.emacs.help Subject: No automatic tabs in Emacs? Date: Tue, 30 Nov 2010 20:47:50 +0100 Message-ID: <4CF554E6.4090009@interia.pl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------090609030902010004030909" X-Trace: dough.gmane.org 1291237720 24425 80.91.229.12 (1 Dec 2010 21:08:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Dec 2010 21:08:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 01 22:08:36 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 1PNtul-0002cu-GG for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Dec 2010 22:08:35 +0100 Original-Received: from localhost ([127.0.0.1]:52369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNtuk-0004Df-SJ for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Dec 2010 16:08:34 -0500 Original-Received: from [140.186.70.92] (port=44144 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNdl8-0006hs-1P for help-gnu-emacs@gnu.org; Tue, 30 Nov 2010 22:53:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNWEU-0003HW-N2 for help-gnu-emacs@gnu.org; Tue, 30 Nov 2010 14:51:24 -0500 Original-Received: from smtpo.poczta.interia.pl ([217.74.65.206]:40831) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNWEU-00034m-2I for help-gnu-emacs@gnu.org; Tue, 30 Nov 2010 14:51:22 -0500 Original-Received: by smtpo.poczta.interia.pl (INTERIA.PL, from userid 502) id 41804102D24E; Tue, 30 Nov 2010 20:47:53 +0100 (CET) Original-Received: from [62.141.223.244] (host-62-141-223-244.swidnica.mm.pl [62.141.223.244]) by poczta.interia.pl (INTERIA.PL) with ESMTPA for ; Tue, 30 Nov 2010 20:47:50 +0100 (CET) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100922 Thunderbird/3.1.4 X-Interia-Antivirus: OK X-EMID: 460aeacc X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Wed, 01 Dec 2010 16:07:29 -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:75471 Archived-At: This is a multi-part message in MIME format. --------------090609030902010004030909 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 -- ,= ,-_-. =. Sueroski ((_/)o o(\_)) Free Software User `-'(. .)`-' \_/ www.gnu.org --------------090609030902010004030909 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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(){
=C2=A0=C2=A0=C2=A0 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
--=20
 ,=3D ,-_-. =3D.	Sueroski
((_/)o o(\_))	Free Software User
 `-'(. .)`-'
     \_/	www.gnu.org
----------------------------------------------------= ------------=0D
Plotki codziennie w Twoim telefonie!=0D
Sprawdz >> http://linkint.pl/f2= 86d
--------------090609030902010004030909--