all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Wu <peterwu@hotmail.com>
Subject: How to configure Emacs to autoload modes?
Date: 21 Feb 2003 13:44:30 +0800	[thread overview]
Message-ID: <ufzqi89xd.fsf@hotmail.com> (raw)

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!


--
Peter Wu

             reply	other threads:[~2003-02-21  5:44 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-21  5:44 Peter Wu [this message]
2003-02-21  5:50 ` How to configure Emacs to autoload modes? Lucas
2003-02-21  9:20   ` Peter Wu
2003-02-21  9:42     ` Lucas
2003-02-21  9:50       ` Peter Wu
2003-02-21  9:58         ` Lucas
2003-02-21 11:35           ` Peter Wu
2003-02-21 11:50             ` Lucas
2003-02-21 17:51         ` Kevin Rodgers
2003-02-21 19:29           ` Lucas
2003-02-24  2:10           ` Peter Wu
2003-02-21 17:56 ` Kai Großjohann
2003-02-21 18:37   ` David Masterson
2003-02-21 20:45     ` Kai Großjohann
2003-02-21 22:09       ` David Masterson
2003-02-21 23:48         ` Stefan Monnier <foo@acm.com>

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

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

  git send-email \
    --in-reply-to=ufzqi89xd.fsf@hotmail.com \
    --to=peterwu@hotmail.com \
    /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.
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.