unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: perl-mode.el file in Mac OS X
Date: Wed, 2 Feb 2005 10:39:11 +0100	[thread overview]
Message-ID: <5202291bc1a0e6837d62f752ed6f4539@Web.DE> (raw)
In-Reply-To: <87c8e99.0502011954.6e3ca099@posting.google.com>


Am 02.02.2005 um 04:54 schrieb Nicholas Tamara:

> Hello,
>
> Can anyone point me to the right location to place the perl-mod.el
> file so that the emacs that comes with Mac OS X recognizes .pl files
> as Perl script files? Thanks.

It's not the Elisp file that you have to put anywhere -- it's probably 
right now in a place that Emacs searches. You can check that with "C-h 
v load-path" and then check that you to have

/usr/share/emacs/21.2/lisp/progmodes/cperl-mode.el
/usr/share/emacs/21.2/lisp/progmodes/perl-mode.el


What you need to do is to either "(require 'perl-mode)" actively or to 
set auto-mode-alist in a manner like this (to have only one place where 
you augment this list):

(setq auto-mode-alist
   (append
     '(("\\.xsl$"       . sgml-mode)
       ("\\.plist$"     . sgml-mode)
       ("\\.idd$"       . sgml-mode)
       ("\\.ide$"       . sgml-mode)
       ("\\.xml$"       . xml-mode)
       ("\\.xsl$"       . xml-mode)
       ("\\.fo$"        . xml-mode)
       ("\\.nw$"        . noweb-mode)
       ("\\.f90$"       . f90-mode)
       ("\\.pl$"        . perl-mode)
       ("\\.pod$"       . perl-mode)
       ("\\.tgz$"       . tar-mode)
       ("\\.tar\\.bz2$" . tar-mode)
       ("\\.tar\\.gz$"  . tar-mode))
   auto-mode-alist))

------------------------------- Info --------------------------------
There is an Emacs list for Mac OS X users too:

List Post: <mailto:macosx-emacs@email.esm.psu.edu>
List Archives: <http://www.esm.psu.edu/mac-tex/MacOSX-Emacs-Digests/>

--
Greetings

   Pete

Either this man is dead or my watch has stopped. - Groucho Marx

  parent reply	other threads:[~2005-02-02  9:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-02  3:54 perl-mode.el file in Mac OS X Nicholas Tamara
2005-02-02  8:54 ` Ismael Valladolid Torres
2005-02-02  9:39 ` Peter Dyballa [this message]
     [not found] ` <mailman.448.1107338600.2841.help-gnu-emacs@gnu.org>
2005-02-02 14:58   ` Stefan Monnier
2005-02-02 15:40     ` Ismael Valladolid Torres
2005-02-02 16:01     ` David Kastrup
2005-02-02 16:12       ` **Re: " Ismael Valladolid Torres
2005-02-02 18:05     ` Peter Dyballa
     [not found]     ` <mailman.557.1107368636.2841.help-gnu-emacs@gnu.org>
2005-02-03  3:53       ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=5202291bc1a0e6837d62f752ed6f4539@Web.DE \
    --to=peter_dyballa@web.de \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).