unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Extending Alignment in C/C++ expressions (align.el)
@ 2007-09-10 12:37 Nordlöw
  2007-09-10 16:30 ` Tom Tromey
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Nordlöw @ 2007-09-10 12:37 UTC (permalink / raw)
  To: help-gnu-emacs

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

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

end of thread, other threads:[~2007-09-11 20:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-10 12:37 Extending Alignment in C/C++ expressions (align.el) Nordlöw
2007-09-10 16:30 ` 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

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).