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

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

Re: auto indenting


From: weber
Subject: Re: auto indenting
Date: Fri, 22 Jun 2007 19:25:48 -0000
User-agent: G2/1.0

On 22 jun, 15:21, bpatton <bpat...@ti.com> wrote:
> I mostly do perl code, some c and cshell
>
> I like to have things lined up.  The auto indent is good, but I would
> like to extend the function of the tab key.
>
> I have this code
>
> my $a = undef;
> my $bcd = undef;
> my $someLongVariableName = undef;
>
> I prefer to have all my ='s to line up.  The little bit of time it
> takes
> for me to line them up, I believe more than pays for it's self in
> maintance
>
> I would like to have the tab to the auto indenting, but I would also
> like to have it insert 2 spaces each it cannot do auto indenting.
>
> my $a                                   = undef;
> my $bcd                               = undef;
> my $someLongVariableName = undef;

A tip for you to align those '='s is the command align-regexp.
Just in case you didn't knew!
Cheers,
weber



reply via email to

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