From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Curiosity: Perl File Extension in Emacs Config
Date: Fri, 13 Jul 2012 10:10:08 -0700 (PDT) [thread overview]
Message-ID: <d0b3546e-60a7-4b3d-9583-5403db8a0868@googlegroups.com> (raw)
A curiosity question.
emacs's “auto-mode-alist” has this value:
("\\.\\([pP]\\([Llm]\\|erl\\|od\\)\\|al\\)\\'" . perl-mode)
the regex there seems a bit wild. If i didn't get it wrong, then its like this
. ([pP] ( [Llm] | erl | od ) | al )
so it covers:
.pl
.perl
.pod
.pm
.al
plus SOME case variations. e.g. {.pL , .PL}.
what's the “.al” for?
is it necessary to include the “.pod”? because the perl-mode doesn't do any coloring with “.pod” files, nor cperl-mode. If there's a mode handing “.pod” file am guessing it won't be perl-mode.
also, is the “.perl” there necessary? Is that a accepted perl file suffix? (Just checked it's not in any file bundled with perl v5.10.1.)
would it be better if it's just
("\\.\\(p\\([lm]\\)\\)\\'" . perl-mode)
?
Xah
next reply other threads:[~2012-07-13 17:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-13 17:10 Xah Lee [this message]
2012-07-13 19:55 ` Curiosity: Perl File Extension in Emacs Config John Bokma
2012-07-14 4:10 ` Xah Lee
2012-07-15 3:52 ` John Bokma
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=d0b3546e-60a7-4b3d-9583-5403db8a0868@googlegroups.com \
--to=xahlee@gmail.com \
--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.