gnu.emacs.help
[Top] [All Lists]

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

Subject: Extending Alignment in C/C++ expressions align.el
From: Nordlöw
Date: Mon, 10 Sep 2007 12:37:36 -0000
Newsgroups: gnu.emacs.help

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


<Prev in Thread] Current Thread [Next in Thread>