help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: perl-mode.el file in Mac OS X


From: Ismael Valladolid Torres
Subject: Re: perl-mode.el file in Mac OS X
Date: Wed, 2 Feb 2005 09:54:28 +0100
User-agent: Mutt/1.5.6i

Nicholas Tamara escribe:
> 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.

Not exactly perl-mod.el related, but these snippets in your .emacs
should work with any similar package:

(add-to-list 'load-path (expand-file-name "~/.elisp"))

Put perl-mod.el inside ~/.elisp, then add also:

(if (load "perl-mod" 't)
    (setq
     auto-mode-alist
     (cons '("\\.pl$" . post-mode) auto-mode-alist)))

If later you byte-compile perl-mod, then instead this will use the
faster-loading resulting .elc file.

EmacsWiki is your friend!

Cordially, Ismael




reply via email to

[Prev in Thread] Current Thread [Next in Thread]