all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Curiosity: Perl File Extension in Emacs Config
@ 2012-07-13 17:10 Xah Lee
  2012-07-13 19:55 ` John Bokma
  0 siblings, 1 reply; 4+ messages in thread
From: Xah Lee @ 2012-07-13 17:10 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-15  3:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-13 17:10 Curiosity: Perl File Extension in Emacs Config Xah Lee
2012-07-13 19:55 ` John Bokma
2012-07-14  4:10   ` Xah Lee
2012-07-15  3:52     ` John Bokma

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.