emacs-devel
[Top][All Lists]
Advanced

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

Re: emacs ident


From: Alan Mackenzie
Subject: Re: emacs ident
Date: Wed, 17 Aug 2011 19:52:42 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

Hello, pingved.

On Wed, Aug 17, 2011 at 08:04:29PM +0400, address@hidden wrote:
> I  need  to create indent for code of next format (c-mode or any other
> c-similar mode):

> void Test(void) {
>  (3space)DWORD abc;
>  (4space)exit(0);
>  (4space){
>  (4space)(3space)DWORD a;
>  (4space)(4space)exit(0);
>  (4space)}
> }

It's not entirely clear what you're asking for here.  What is the
criterion which distinguishes 3 spaces from 4 spaces (or even 7 or 8)?

> But emacs doesn't support this style :(

That's the first I've heard of it.  ;-)  If you've not done so already,
read the CC Mode manual which should have come with your Emacs.  In
particular, read the chapters "Indentation Engine Basics" and
"Customizing Indentation".  It may well be that you might have to write a
function to put on `c-special-indent-hook', depending on how unsystematic
your indentation scheme actually is.

As a matter of interest, why do you want/need such a wierd style?

> Can Developers fix this?

There's nothing broken, so there's nothing to fix.

> THX!

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

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