help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No automatic tabs in Emacs?


From: despen
Subject: Re: No automatic tabs in Emacs?
Date: Wed, 01 Dec 2010 17:31:09 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Sueroski <sueroski@interia.pl> writes:

> 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");
>     }

When you typed the ";" at the end of the line with printf,
emacs should have indented the line for you.

It did for me.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]