From: Damien Wyart <damien.wyart@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: perl mode
Date: Wed, 02 Oct 2013 14:06:22 +0200 [thread overview]
Message-ID: <524c0c3f$0$2267$426a34cc@news.free.fr> (raw)
In-Reply-To: mailman.3253.1380707680.10748.help-gnu-emacs@gnu.org
* Philippe Delavalade <philippe.delavalade@orange.fr> in gnu.emacs.help:
> it's my first post on this list, so be kind with my english :-)
If you prefer writing in French, there is also a French newsgroup
related to Emacs : fr.comp.application.emacs.
> I have problems with indentation in perl mode when usign "$'" ;
> I guess it comes from the "'"...
I don't think so: removing it doesn't change the observed behavior.
> If I run the "indent-region" command (after having marked the whole
> script", identation is not correct. I suspect I should add some lines
> in .emacs but I don't know which are the right ones...
You can use cperl mode instead of perl, it is a bit more powerful. The
simplest way to do so is by adding this line to .emacs:
(defalias 'perl-mode 'cperl-mode)
A quick test shows that your example works better with cperl mode.
--
DW
next parent reply other threads:[~2013-10-02 12:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3253.1380707680.10748.help-gnu-emacs@gnu.org>
2013-10-02 12:06 ` Damien Wyart [this message]
2013-10-02 12:23 ` perl mode Philippe Delavalade
2013-10-02 16:41 ` Philippe Delavalade
[not found] ` <mailman.3268.1380732091.10748.help-gnu-emacs@gnu.org>
2013-10-02 17:14 ` Damien Wyart
2013-10-03 16:19 ` Philippe Delavalade
2013-10-02 5:00 Philippe Delavalade
2013-10-02 17:10 ` Andreas Röhler
-- strict thread matches above, loose matches on Subject: below --
2013-10-01 16:09 Philippe Delavalade
2013-10-04 2:46 ` Stefan Monnier
2013-10-04 11:22 ` Luca Ferrari
[not found] ` <mailman.3390.1380885764.10748.help-gnu-emacs@gnu.org>
2013-10-04 18:55 ` Damien Wyart
2002-05-08 19:27 Bingham, Jay
2002-05-08 17:24 Gabriel C Millerd
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='524c0c3f$0$2267$426a34cc@news.free.fr' \
--to=damien.wyart@free.fr \
--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.