all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stefan Reichör" <stefan@xsteve.at>
Subject: Re: Adding/installing a Major Mode
Date: Wed, 15 Jun 2005 21:54:49 +0200	[thread overview]
Message-ID: <87y89be6pi.fsf@utanet.at> (raw)
In-Reply-To: 1118861445.444270.229380@f14g2000cwb.googlegroups.com

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.

      parent reply	other threads:[~2005-06-15 19:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-15 18:50 Adding/installing a Major Mode Eric
2005-06-15 19:11 ` Eric
2005-06-15 19:34 ` drkm
2005-06-15 19:54 ` Stefan Reichör [this message]

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=87y89be6pi.fsf@utanet.at \
    --to=stefan@xsteve.at \
    /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.