From: Nordlöw <per.nordlow@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Extending Alignment in C/C++ expressions (align.el)
Date: Mon, 10 Sep 2007 12:37:36 -0000 [thread overview]
Message-ID: <1189427856.416129.298270@o80g2000hse.googlegroups.com> (raw)
How can I extend the Emacs package align.el to make M-x align-entire
additionally align the if sub-expressions and opening curly-braces as
follows?:
if (x) { xi = -1; }
else (yyy) { yyyi = +1; }
should be aligned into
if (x) { xi = -1; }
else (yyy) { yyyi = +1; }
(the example needs to be displayed in fixed-width font to be
understandable)
Thanks,
Nordlöw
next reply other threads:[~2007-09-10 12:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-10 12:37 Nordlöw [this message]
2007-09-10 16:30 ` Extending Alignment in C/C++ expressions (align.el) Tom Tromey
2007-09-10 20:10 ` Andreas Röhler
[not found] ` <mailman.677.1189484458.18990.help-gnu-emacs@gnu.org>
2007-09-11 11:14 ` Nordlöw
2007-09-11 15:07 ` Tom Tromey
2007-09-11 16:51 ` Andreas Röhler
[not found] ` <mailman.713.1189529369.18990.help-gnu-emacs@gnu.org>
2007-09-11 20:23 ` Nordlöw
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=1189427856.416129.298270@o80g2000hse.googlegroups.com \
--to=per.nordlow@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.