all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: pingved@gmail.com
Cc: emacs-devel@gnu.org
Subject: Re: emacs ident
Date: Wed, 17 Aug 2011 19:52:42 +0000	[thread overview]
Message-ID: <20110817195242.GA3386@acm.acm> (raw)
In-Reply-To: <34249573.20110817200429@gmail.com>

Hello, pingved.

On Wed, Aug 17, 2011 at 08:04:29PM +0400, pingved@gmail.com 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	other threads:[~2011-08-17 19:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-17 16:04 emacs ident pingved
2011-08-17 19:52 ` Alan Mackenzie [this message]
2011-09-20 13:24   ` Nix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110817195242.GA3386@acm.acm \
    --to=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=pingved@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.