From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve B Newsgroups: gmane.emacs.help Subject: Re: No automatic tabs in Emacs? Date: Thu, 2 Dec 2010 17:29:03 +0900 Message-ID: References: <4CF554E6.4090009@interia.pl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (iPhone Mail 8B117) Content-Type: multipart/alternative; boundary=Apple-Mail-2--561138540 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291313236 11809 80.91.229.12 (2 Dec 2010 18:07:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Dec 2010 18:07:16 +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 Thu Dec 02 19:07:11 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 1PODYk-0006zv-H0 for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Dec 2010 19:07:10 +0100 Original-Received: from localhost ([127.0.0.1]:52893 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PODYj-0007M8-QJ for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Dec 2010 13:07:09 -0500 Original-Received: from [140.186.70.92] (port=47480 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PO4Yu-0006cU-5N for help-gnu-emacs@gnu.org; Thu, 02 Dec 2010 03:31:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PO4YX-0008FA-E4 for help-gnu-emacs@gnu.org; Thu, 02 Dec 2010 03:30:43 -0500 Original-Received: from mail-gw0-f41.google.com ([74.125.83.41]:36407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PO4YX-0008EN-7a for help-gnu-emacs@gnu.org; Thu, 02 Dec 2010 03:30:21 -0500 Original-Received: by gwj22 with SMTP id 22so2244731gwj.0 for ; Thu, 02 Dec 2010 00:30:20 -0800 (PST) Original-Received: by 10.90.90.6 with SMTP id n6mr849873agb.97.1291278620064; Thu, 02 Dec 2010 00:30:20 -0800 (PST) Original-Received: from [110.69.93.36] ([110.69.93.36]) by mx.google.com with ESMTPS id m66sm163107yha.34.2010.12.02.00.30.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 02 Dec 2010 00:30:18 -0800 (PST) In-Reply-To: <4CF554E6.4090009@interia.pl> X-Mailer: iPhone Mail (8B117) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Thu, 02 Dec 2010 12:52:59 -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:75483 Archived-At: --Apple-Mail-2--561138540 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii C-j is your friend=20 On Dec 1, 2010, at 4:47, Sueroski wrote: > Hello everyone.=20 > 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).=20 >=20 > 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 i= t may make in future my programming faster (when I'll mainly switched to Ema= cs... now I don't know about it so much) > And I'm flustrated about one think... so, I'm programmer (mainly Python an= d PHP) and actually all editors gives me automatic adding tab... I haven't t= his on Emacs and I don't know how to do it. I must on every line press TAB a= nd it's not good ;[ > So... what I must change to have auto tabs in Emacs? I searched most of si= tes but everything telling how to select type of tabs, leight of tabs etc.=20= >=20 > If you don't know what I mean under term "auto tab" then watch:=20 > for example:=20 > I'm writing on C my code:=20 > #include "stdio.h" > int main(){ > } > And I wanna add something to main. I push Enter and write my code. In Emac= s I get this:=20 > #include "stdio.h" > int main(){ > printf("Hello World"); > } > And I wanna get by default without pressing TAB, get this:=20 > #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 hav= e this by default? if I edit *.c file it's probably know to I write C code a= nd I wanna tabs... ).=20 >=20 > Greetings and sorry for wasting time >=20 > PS I think my English is not really bad but I can make few mistakes (I'm r= eally 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 > ----------------------------------------------------------------=20 > Plotki codziennie w Twoim telefonie!=20 > Sprawdz >> http://linkint.pl/f286d --Apple-Mail-2--561138540 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=utf-8
C-j is your friend 


On Dec 1, 2010, at 4:47, Sueroski <sueroski@interia.pl> 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
-- 
 ,= ,-_-. =.	Sueroski
((_/)o o(\_))	Free Software User
 `-'(. .)`-'
     \_/	www.gnu.org
----------------------------------------------------------------
Plotki codziennie w Twoim telefonie!
Sprawdz >> http://linkint.pl/f286d
--Apple-Mail-2--561138540--