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: drkm
Subject: Re: Adding/installing a Major Mode
Date: Wed, 15 Jun 2005 21:34:01 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (windows-nt)

"Eric" <ericvlach@gmail.com> writes:

> 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?

  Is there some install notes?  Where did you find it?  I guess
something like this can help:

    ;; If the file is in a directory not yet in the 'load-path'.
    (push "~/.elisp" load-path)
    (autoload 'python-mode "python-mode" "Major mode to edit Python." t)
    (push '("\\.py\\'" . python-mode) auto-mode-alist)

  Or at least 'M-x load-library <RET> python-mode <RET>' and then
'M-x python-mode'.

--drkm


reply via email to

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