From: "Harald Jörg" <haj@posteo.de>
To: 8165@debbugs.gnu.org
Subject: bug#8165: cperl-mode: The wanted indentation is available via customize
Date: Tue, 1 Sep 2020 18:22:19 +0200 [thread overview]
Message-ID: <42e66bae-bcc7-1c32-d2e7-0dfe21783cfa@posteo.de> (raw)
In-Reply-To: <svy64wyxc9.fsf@tbox.wtc.algo>
The desired indentation of data
use Class::Struct Foo => [
a => '$',
b => '$',
c => '$',
];
is already available. As so many things in cperl-mode, it can be
customized:
(setq cperl-close-paren-offset -4)
(setq cperl-indent-parens-as-block t)
Therefore I suggest to close this bug.
These are also the recommended settings in the most influential book
Perl Best Practices (PBP) by Damian Conway. I guess I should add
the PBP settings for indentation in a new value to cperl-style-alist,
but that's probably beyond the scope of this bug report.
--
Cheers,
haj
next prev parent reply other threads:[~2020-09-01 16:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-03 16:37 bug#8165: 24.0.50; cperl indentation Sam Steingold
2020-09-01 16:22 ` Harald Jörg [this message]
2020-09-01 17:12 ` bug#8165: cperl-mode: The wanted indentation is available via customize Stefan Kangas
2020-09-01 18:15 ` Harald Jörg
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=42e66bae-bcc7-1c32-d2e7-0dfe21783cfa@posteo.de \
--to=haj@posteo.de \
--cc=8165@debbugs.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.