all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pustovoyt Alexander <isntvoid@yandex.ru>
To: help-gnu-emacs@gnu.org
Subject: Can't format my Perl code properly with cperl-mode
Date: Tue, 29 Oct 2013 12:57:35 +0400	[thread overview]
Message-ID: <73861383037055@web4h.yandex.ru> (raw)

   My problem is the same as the described in Emacs Wiki: Indenting Perl -
   Treating parentheses as blocks
   (http://www.emacswiki.org/emacs/IndentingPerl).

   е║

   I've got:

   е║

   sub _get_options

   {

   е║ return Getopt::Long::GetOptions(\%Options,

   е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║ qw(

   е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║ version|V

   е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║ )

   е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║ );

   }

   е║

   instead of desirable:

   е║

   sub _get_options

   {

   е║ return Getopt::Long::GetOptions(\%Options,

   е║е║е║ qw(

   е║е║е║е║е║ version|V

   е║е║е║ )

   е║ );

   }

   е║

   My ~/.emacs content is:

   е║

   (setq-default indent-tabs-mode nil)

   е║

   (defalias 'perl-mode 'cperl-mode)

   (setq-default

   е║cperl-indent-level 2

   е║cperl-indent-parens-as-block t

   е║cperl-tab-always-indent t

   е║cperl-continued-statement-offset 2

   е║cperl-continued-brace-offset -2

   е║cperl-close-paren-offset -2

   )

   е║

   е║

   I'm running GNU Emacs 24.3.1 with CPerl 6.2-Emacs.

   е║


             reply	other threads:[~2013-10-29  8:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-29  8:57 Pustovoyt Alexander [this message]
2013-10-29 17:12 ` Can't format my Perl code properly with cperl-mode Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2013-10-30  8:04 Pustovoyt Alexander
2013-10-31  1:28 ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=73861383037055@web4h.yandex.ru \
    --to=isntvoid@yandex.ru \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.