[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: No automatic tabs in Emacs?
From: |
Sergei Organov |
Subject: |
Re: No automatic tabs in Emacs? |
Date: |
Fri, 03 Dec 2010 15:10:40 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Sueroski <sueroski@interia.pl> writes:
[...]
> 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");
> }
Add
(define-key global-map (kbd "RET") 'newline-and-indent)
to you .emacs, and restart emacs.
-- Sergei.
- No automatic tabs in Emacs?, Sueroski, 2010/12/01
- Re: No automatic tabs in Emacs?, egarrulo, 2010/12/01
- Re: No automatic tabs in Emacs?, suvayu ali, 2010/12/02
- Re: No automatic tabs in Emacs?, egarrulo, 2010/12/02
- Message not available
- Re: No automatic tabs in Emacs?, despen, 2010/12/08
- Re: No automatic tabs in Emacs?, Elena, 2010/12/08
- Re: No automatic tabs in Emacs?, Jay Belanger, 2010/12/08
- Re: No automatic tabs in Emacs?, Pascal J. Bourguignon, 2010/12/08
- Re: No automatic tabs in Emacs?, Elena, 2010/12/08
- Re: No automatic tabs in Emacs?, Torsten Mueller, 2010/12/08
- Re: No automatic tabs in Emacs?, Elena, 2010/12/08