[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: spaces before function calls in perl
From: |
Andreas Röhler |
Subject: |
Re: spaces before function calls in perl |
Date: |
Tue, 11 Mar 2008 07:38:16 +0100 |
User-agent: |
KMail/1.9.5 |
Am Montag, 10. März 2008 23:00 schrieb Karl Berry:
> The standard GNU style is to put spaces before function calls, and
> between function arguments, as in:
>
> foo (1, 2, 3);
>
> Does anyone happen to know of a way to get these spaces inserted
> automatically (that is, when typing a "(" or ","), in a perl mode? I
> can imagine some ways to hack it up, but it seemed like it might already
> exist. I just couldn't find it.
>
> Thanks,
> Karl
>
>
>
It seems "cperl-mode.el" contains that kind of things:
,----
| (defcustom cperl-electric-lbrace-space nil
| "*Non-nil (and non-null) means { after $ should be preceded by ` '.
`----
So a hack could start from there.
Andreas Röhler