From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: perl-mode.el file in Mac OS X Date: Wed, 2 Feb 2005 10:39:11 +0100 Message-ID: <5202291bc1a0e6837d62f752ed6f4539@Web.DE> References: <87c8e99.0502011954.6e3ca099@posting.google.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1107338171 2626 80.91.229.2 (2 Feb 2005 09:56:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Feb 2005 09:56:11 +0000 (UTC) Cc: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 02 10:56:11 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1CwHEq-0005HR-Pb for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Feb 2005 10:55:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CwHRw-0000wd-7O for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Feb 2005 05:09:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CwHLu-0000SH-3p for help-gnu-emacs@gnu.org; Wed, 02 Feb 2005 05:03:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CwHLl-0000PC-Mj for help-gnu-emacs@gnu.org; Wed, 02 Feb 2005 05:03:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CwHLc-0000FN-Em for help-gnu-emacs@gnu.org; Wed, 02 Feb 2005 05:02:57 -0500 Original-Received: from [217.72.192.226] (helo=smtp08.web.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CwGyh-00027L-2s for help-gnu-emacs@gnu.org; Wed, 02 Feb 2005 04:39:15 -0500 Original-Received: from [80.184.166.230] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.103 #192) id 1CwGye-0002FX-00; Wed, 02 Feb 2005 10:39:12 +0100 In-Reply-To: <87c8e99.0502011954.6e3ca099@posting.google.com> Original-To: nicktamara@yahoo.ca (Nicholas Tamara) X-Mailer: Apple Mail (2.619.2) X-Sender: Peter_Dyballa@web.de X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:23841 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23841 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: List Archives: -- Greetings Pete Either this man is dead or my watch has stopped. - Groucho Marx