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

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

Re: Adding/installing a Major Mode


From: Stefan Reichör
Subject: Re: Adding/installing a Major Mode
Date: Wed, 15 Jun 2005 21:54:49 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Hi Eric!

> I would like to use a python major mode, which emacs doesnt have. I
> found and downloaded a package that includes a python major mode file.
> Where do I define that particular file so it can be referenced as a
> mode in emacs?

I use the following lines:

;; load python-mode from python-mode.el
(autoload 'python-mode "python-mode" "Python Mode" t)

;; associate *.py with python-mode
(setq auto-mode-alist (cons '("\\.py\\'" . python-mode) auto-mode-alist))



Stefan.


reply via email to

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