help-gnu-emacs
[Top][All Lists]
Advanced

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

Extending Alignment in C/C++ expressions (align.el)


From: Nordlöw
Subject: Extending Alignment in C/C++ expressions (align.el)
Date: Mon, 10 Sep 2007 12:37:36 -0000
User-agent: G2/1.0

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



reply via email to

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