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: David Hansen
Subject: Re: how to format a assignment statement in cc-mode
Date: Thu, 30 Aug 2007 14:57:03 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

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





reply via email to

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