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

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

Re: How to configure Emacs to autoload modes?


From: Lucas
Subject: Re: How to configure Emacs to autoload modes?
Date: Fri, 21 Feb 2003 06:50:46 +0100
User-agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386-msvc-nt5.1.2600)

Un beau jour, Peter Wu <peterwu@hotmail.com> nous a dit:

> Hello,
>
> I downloaded the python-mode.el to lisp dir and did the byte-compile-file
> successsfully. I need to add the following line in my .emacs file so that
> when I open or new a Python file, Emacs will load the python-mode for me.
>
> ;; Load python-mode
> (autoload 'python-mode "python-mode" "Python editing mode" t)
> (setq auto-mode-alist (append '(("\\.py$" . python-mode)) auto-mode-alist))
>
> However, I notice that if I create a XML or Perl file, I don't need to add
> some similar code in the .emacs file and Emacs can do the job correctly. I
> think there must be some settings that configure Emacs to offer such
> functionality. Can anyone show me how to do this? Thanks!

I think that it's because Emacs knows some modes and extensions natively
(it's the same thing for C, and others).
It is built with that support, maybe you can rebuild Emacs to natively
add support to Python ?

Or am I totally wrong ? ^^

-- 
Lucas


reply via email to

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