unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Indentation
@ 2006-07-03 22:01 Ronny Mandal
  2006-07-03 23:00 ` Indentation Colin S. Miller
  0 siblings, 1 reply; 56+ messages in thread
From: Ronny Mandal @ 2006-07-03 22:01 UTC (permalink / raw)


Hi.

Does anyone know how I get rid of the annoying indentation after e.g. 
if-statements (in multiple languages), i.e. (C-example):

if(condition)
    {	/*Why?!*/
    }


Thanks.

-RM

^ permalink raw reply	[flat|nested] 56+ messages in thread
* Indentation
@ 2022-01-26 14:13 Pierre L. Nageoire
  2022-01-26 21:18 ` Indentation Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 56+ messages in thread
From: Pierre L. Nageoire @ 2022-01-26 14:13 UTC (permalink / raw)
  To: help-gnu-emacs



Hi,

A few days ago with a macro of the form (define-something indentation
below was of two characters. I find it suitable ... But after installing
the last git version of emacs I got only one character : I dislike it !
There might be a variable to customize somewhere but don't know where !

Regards 



^ permalink raw reply	[flat|nested] 56+ messages in thread
* indentation
@ 2021-04-27  7:03 ptlo
  2021-04-27  7:25 ` indentation Philip Kaludercic
                   ` (2 more replies)
  0 siblings, 3 replies; 56+ messages in thread
From: ptlo @ 2021-04-27  7:03 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

with never version of emacs (I have GNU Emacs 25.3.1 (x86_64-suse-linux-gnu, GTK+ Version 3.22.30)) I'm constantly annoyed by too aggressive automatic indentation when editing. Basically when I press enter, the cursor on the new line is automatically moved to the column of first character of the preceding line. This is in the Fundamental mode.

It gets even worse e.g. in the F90 mode. It e.g. moves a comment (starting with !) on preceding line to the column of first character of the next (really!) line when I add new line inside a code. This is crazy, why I couldn't have comment starting at column 1? The emacs simply can't know what I'm going to do on new empty line!!

In older emacs versions, when I presses enter, the cursor simply stayed at column 1 on new line. If I wanted a formatting, I pressed tab key. Please, please, how to return to this older setting? I went through all customizations containing indent, but nothing works.

Thank you!

Petr



^ permalink raw reply	[flat|nested] 56+ messages in thread
* Indentation.
@ 2006-10-27 16:17 zombek
  2006-10-27 16:46 ` Indentation Markus Triska
  0 siblings, 1 reply; 56+ messages in thread
From: zombek @ 2006-10-27 16:17 UTC (permalink / raw)


Hi.
I'm new to emacs and I'd like to set 2 things:
1) 4 space indentation (no mather which language) and it shouldn't care
about the syntax - when I say indent then indent
2)when I press RETURN when beeing on some indentation level i should
automatically go to the same indentation level in the new line without
the need to press TAB

Szymon

^ permalink raw reply	[flat|nested] 56+ messages in thread
* Indentation.
@ 2006-10-27 16:17 zombek
  2006-10-27 16:53 ` Indentation Sam Peterson
  0 siblings, 1 reply; 56+ messages in thread
From: zombek @ 2006-10-27 16:17 UTC (permalink / raw)


Hi.
I'm new to emacs and I'd like to set 2 things:
1) 4 space indentation (no mather which language) and it shouldn't care
about the syntax - when I say indent then indent
2)when I press RETURN when beeing on some indentation level i should
automatically go to the same indentation level in the new line without
the need to press TAB

Szymon

^ permalink raw reply	[flat|nested] 56+ messages in thread
[parent not found: <mailman.2266.1066871723.21628.help-gnu-emacs@gnu.org>]
* indentation
@ 2003-10-23  1:14 Yen Tran
  0 siblings, 0 replies; 56+ messages in thread
From: Yen Tran @ 2003-10-23  1:14 UTC (permalink / raw)


Hi,
How do I leave indentation mode unchanged?   For example, if current *.c or
*.cpp file is using 5 spaces as indentation, then use 5 spaces; if it's
using 4-space tab, then use tab.

By default, everything I edit with emacs adds tab to file.

Version I am using is GNU Emacs 21.2.1.
Thanks,
--yen

^ permalink raw reply	[flat|nested] 56+ messages in thread

end of thread, other threads:[~2022-01-28  6:31 UTC | newest]

Thread overview: 56+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-03 22:01 Indentation Ronny Mandal
2006-07-03 23:00 ` Indentation Colin S. Miller
  -- strict thread matches above, loose matches on Subject: below --
2022-01-26 14:13 Indentation Pierre L. Nageoire
2022-01-26 21:18 ` Indentation Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27  3:30   ` Indentation Pierre L. Nageoire
2022-01-27 10:15     ` Indentation Robert Pluim
2022-01-28  6:31       ` Indentation Pierre L. Nageoire
2021-04-27  7:03 indentation ptlo
2021-04-27  7:25 ` indentation Philip Kaludercic
2021-04-27 15:45   ` indentation ptlo
2021-04-27 16:06     ` indentation Colin Baxter
2021-04-27 18:43       ` indentation Thibaut Verron
2021-04-27 19:00         ` indentation Colin Baxter
2021-04-27 19:20           ` indentation Thibaut Verron
2021-04-27 20:02             ` indentation Colin Baxter
2021-04-28  8:36               ` indentation Thibaut Verron
2021-04-27  9:30 ` indentation Gregory Heytings
2021-04-27  9:47   ` indentation Joost Kremers
2021-04-27 16:55     ` indentation Stefan Monnier
2021-04-27 22:12       ` indentation Gregory Heytings
2021-04-27 17:07 ` indentation Stefan Monnier
2021-04-27 18:29   ` indentation ptlo
2021-04-27 20:31     ` indentation Stefan Monnier
2021-04-28  6:32       ` indentation ptlo
2021-04-28  6:42         ` indentation Joost Kremers
2021-04-28 14:14         ` indentation Stefan Monnier
2021-04-29  7:14           ` indentation ptlo
2021-04-29 13:43             ` indentation Stefan Monnier
2021-04-29 14:23               ` indentation Emanuel Berg via Users list for the GNU Emacs text editor
2021-04-30  7:05               ` indentation ptlo
2021-04-30  7:58                 ` indentation Philip Kaludercic
2021-04-30  8:54                   ` indentation ptlo
2021-04-30  9:09                     ` indentation Thibaut Verron
2021-04-30  9:18                       ` indentation ptlo
2021-04-30 19:05                 ` indentation Jean Louis
2021-04-30 19:59                   ` indentation Stefan Monnier
2021-04-30 21:58                 ` indentation Emanuel Berg via Users list for the GNU Emacs text editor
2021-04-29 21:14           ` indentation Wayne Harris via Users list for the GNU Emacs text editor
2021-04-30 20:17             ` indentation Tassilo Horn
2021-05-01 13:43               ` indentation Wayne Harris via Users list for the GNU Emacs text editor
2021-05-02  7:20                 ` indentation Tassilo Horn
2021-05-04 21:03                   ` indentation Wayne Harris via Users list for the GNU Emacs text editor
2021-05-05  1:46                     ` indentation Stefan Monnier via Users list for the GNU Emacs text editor
2006-10-27 16:17 Indentation zombek
2006-10-27 16:46 ` Indentation Markus Triska
2006-10-27 18:01   ` Indentation Malte Spiess
2006-11-01 20:41     ` Indentation Markus Triska
2006-10-27 16:17 Indentation zombek
2006-10-27 16:53 ` Indentation Sam Peterson
2006-10-27 18:58   ` Indentation Sam Peterson
2006-10-28 16:25     ` Indentation jmg3000
2006-10-28 16:28       ` Indentation jmg3000
2006-10-28 16:54       ` Indentation don provan
2006-10-28 23:29         ` Indentation jmg3000
     [not found] <mailman.2266.1066871723.21628.help-gnu-emacs@gnu.org>
2003-10-23 13:19 ` indentation Gareth Rees
2003-10-23  1:14 indentation Yen Tran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).