unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* indent after parens in cperl-mode
@ 2006-08-10  6:13 Taff
  0 siblings, 0 replies; 2+ messages in thread
From: Taff @ 2006-08-10  6:13 UTC (permalink / raw)


Hi,

Pls help me with cperl mode for Emacs.

1. I want not ident parens and arguments in such way.
Check_agruments(
               arguments
               );

2. But I want in such.
Check_agruments(
 arguments
);

I had tried to use all styles in cperl-set-style, but it's not help.
Also i try to understand how work cperl-calculate-indent but
i'm not strong in ELisp.

Thx a lot.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: indent after parens in cperl-mode
       [not found] <mailman.5046.1155190414.9609.help-gnu-emacs@gnu.org>
@ 2006-08-11  6:15 ` wenbinye
  0 siblings, 0 replies; 2+ messages in thread
From: wenbinye @ 2006-08-11  6:15 UTC (permalink / raw)


 I use cperl style "PerlStyle", and set cperl-mode-hook as following,
it's ok.
(add-hook 'cperl-mode-hook
          (lambda()
            (cperl-set-style "PerlStyle")
            (setq cperl-indent-parens-as-block t)
            (setq cperl-close-paren-offset (- cperl-indent-level))
            (setq cperl-invalid-face nil)
            (setq cperl-auto-newline t)))

The two variable: cperl-indent-parens-as-block and
cperl-close-paren-offset
control this indent behavior.

Hope this help.

Taff wrote:
> Hi,
>
> Pls help me with cperl mode for Emacs.
>
> 1. I want not ident parens and arguments in such way.
> Check_agruments(
>                arguments
>                );
>
> 2. But I want in such.
> Check_agruments(
>  arguments
> );
>
> I had tried to use all styles in cperl-set-style, but it's not help.
> Also i try to understand how work cperl-calculate-indent but
> i'm not strong in ELisp.
> 
> Thx a lot.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-08-11  6:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.5046.1155190414.9609.help-gnu-emacs@gnu.org>
2006-08-11  6:15 ` indent after parens in cperl-mode wenbinye
2006-08-10  6:13 Taff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).