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

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

Re: how to format a assignment statement in cc-mode


From: Yu Hong
Subject: Re: how to format a assignment statement in cc-mode
Date: Thu, 30 Aug 2007 17:57:24 -0700
User-agent: G2/1.0

On Aug 30, 8:57 pm, David Hansen <david.han...@gmx.net> wrote:
> On Thu, 30 Aug 2007 02:01:24 -0700 Yu Hong wrote:
>
> > I have some assignment statements like the following:
>
> > int first_variable = 1;
> > unsigned char another_variable = 'c';
>
> > I'm wandering how to make all the all the variable names start on the
> > same column. And the following equal signs, literal values should all
> > start on the same column. In this way the statements can be easier to
> > read. How can i do this easily in emacs? Thanks.
>
> I haven't tried it myself, but i think the `align' package can do such
> stuff (ships with Emacs 22).
>
> David

Yes, `M-x align-current' works. Thanks, David.



reply via email to

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