* Adding/installing a Major Mode
@ 2005-06-15 18:50 Eric
2005-06-15 19:11 ` Eric
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Eric @ 2005-06-15 18:50 UTC (permalink / raw)
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?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Adding/installing a Major Mode
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
2 siblings, 0 replies; 4+ messages in thread
From: Eric @ 2005-06-15 19:11 UTC (permalink / raw)
never mind, everyone... i found my answer at emacswiki... didnt know
about that wiki site until just now.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Adding/installing a Major Mode
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
2 siblings, 0 replies; 4+ messages in thread
From: drkm @ 2005-06-15 19:34 UTC (permalink / raw)
"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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Adding/installing a Major Mode
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
2 siblings, 0 replies; 4+ messages in thread
From: Stefan Reichör @ 2005-06-15 19:54 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-06-15 19:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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.