unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: wenbinye@gmail.com
Subject: Re: indent after parens in cperl-mode
Date: 10 Aug 2006 23:15:37 -0700	[thread overview]
Message-ID: <1155276937.714884.122930@p79g2000cwp.googlegroups.com> (raw)
In-Reply-To: <mailman.5046.1155190414.9609.help-gnu-emacs@gnu.org>

 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.

       reply	other threads:[~2006-08-11  6:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.5046.1155190414.9609.help-gnu-emacs@gnu.org>
2006-08-11  6:15 ` wenbinye [this message]
2006-08-10  6:13 indent after parens in cperl-mode Taff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1155276937.714884.122930@p79g2000cwp.googlegroups.com \
    --to=wenbinye@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).