Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Recently I decided to abandon my long-held personal formatting standards and just follow perltidy/PBP. And also, due to curiosity about the recent 22 release of Emacs, promised myself to try to use Emacs more :-)
{Tips, Emacs rc file, Whatever} to make cperl-mode behave more closely to PBP would be appreciated. Being a clueless newbie Emacs user, I don't even know how to set the continuation indentation (exact term?), you know, the "z" in code below:
$mech->submit_form( zzzzform_number => 1, zzzzfields => { zzzzzzzzusername => ... zzzzzzzzpassword => ... zzzz}, );
By default, cperl-mode behaves like this:
$mech->submit_form( zzzzzzzzzzzzzzzzzzzzform_number => 1, zzzzzzzzzzzzzzzzzzzzfields => { zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzusername => ... zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzpassword => ... zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz}, zzzzzzzzzzzzzzzzzzz);
Edit: g0n - replaced pre tags with code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perltidy, emacs, and PBP
by strat (Canon) on Jun 07, 2007 at 10:25 UTC | |
|
Re: perltidy, emacs, and PBP
by swampyankee (Parson) on Jun 07, 2007 at 14:27 UTC | |
by kyle (Abbot) on Jun 07, 2007 at 14:38 UTC | |
|
Re: perltidy, emacs, and PBP
by educated_foo (Vicar) on Jun 07, 2007 at 16:46 UTC |