* cannot select python mode manually
@ 2003-08-30 13:37 Ray
2003-08-30 13:47 ` Vasily Korytov
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Ray @ 2003-08-30 13:37 UTC (permalink / raw)
A bit of an EMACS newbie here, despite having used it on and off for years.
So forgive me if this is really simple!
If I edit a python file the python mode comes in automatically and works
fine. However,if I have another file and want to engage python mode
manually (M-x python-mode) Emacs replies [no match]
python-mode.el and .elc are in /usr/share/emacs/site-lisp along with other
modes that work fine when invoked with M-x !
Can any one give me some pointers as to what to check?
Cheers
--
Ray
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cannot select python mode manually
2003-08-30 13:37 cannot select python mode manually Ray
@ 2003-08-30 13:47 ` Vasily Korytov
2003-08-30 15:33 ` Eli Zaretskii
[not found] ` <mailman.1315.1062261733.29551.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 4+ messages in thread
From: Vasily Korytov @ 2003-08-30 13:47 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 941 bytes --]
On Sat, 30 Aug 2003 13:37:21 +0000, rayj@tau-re.org wrote:
> A bit of an EMACS newbie here, despite having used it on and off for years.
> So forgive me if this is really simple!
>
> If I edit a python file the python mode comes in automatically and works
> fine. However,if I have another file and want to engage python mode
> manually (M-x python-mode) Emacs replies [no match]
>
> python-mode.el and .elc are in /usr/share/emacs/site-lisp along with other
> modes that work fine when invoked with M-x !
>
> Can any one give me some pointers as to what to check?
Just (autoload 'python-mode "python-mode" nil t) or
(require 'python-mode).
I don't know, if this is documented somewhere in the FAQs, but usually
major modes do have a comment, explaining, how to install it.
--
I accept RFC3156 and RFC2440-compatible encrypted mail.
PGP key fingerprint: 123A 7CCE 6E26 6233 0D87 E01A A0F8 3524 FCD8 1841
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 151 bytes --]
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cannot select python mode manually
2003-08-30 13:37 cannot select python mode manually Ray
2003-08-30 13:47 ` Vasily Korytov
@ 2003-08-30 15:33 ` Eli Zaretskii
[not found] ` <mailman.1315.1062261733.29551.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2003-08-30 15:33 UTC (permalink / raw)
> From: Ray <rayj@tau-re.org>
> Newsgroups: gnu.emacs.help
> Date: Sat, 30 Aug 2003 13:37:21 +0000
>
> If I edit a python file the python mode comes in automatically and works
> fine. However,if I have another file and want to engage python mode
> manually (M-x python-mode) Emacs replies [no match]
Probably because python-mode.el is not loaded yet. Does it help to
put the following line into your .emacs?
(autoload 'pyton-mode "pyton-mode" "Enter Pyton mode." t)
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.1315.1062261733.29551.help-gnu-emacs@gnu.org>]
* Re: cannot select python mode manually
[not found] ` <mailman.1315.1062261733.29551.help-gnu-emacs@gnu.org>
@ 2003-08-30 19:30 ` Ray
0 siblings, 0 replies; 4+ messages in thread
From: Ray @ 2003-08-30 19:30 UTC (permalink / raw)
Vasily Korytov wrote:
> On Sat, 30 Aug 2003 13:37:21 +0000, rayj@tau-re.org wrote:
>
>> A bit of an EMACS newbie here, despite having used it on and off for
>> years. So forgive me if this is really simple!
>>
>> If I edit a python file the python mode comes in automatically and works
>> fine. However,if I have another file and want to engage python mode
>> manually (M-x python-mode) Emacs replies [no match]
>>
>> python-mode.el and .elc are in /usr/share/emacs/site-lisp along with
>> other modes that work fine when invoked with M-x !
>>
>> Can any one give me some pointers as to what to check?
>
> Just (autoload 'python-mode "python-mode" nil t) or
> (require 'python-mode).
>
> I don't know, if this is documented somewhere in the FAQs, but usually
> major modes do have a comment, explaining, how to install it.
>
Excellent. Thank you and the other poster for that. (require 'python-mode)
worked. I am using the standard .emacs (and other related files!) that
came with SuSE, so I probably ought to read around a bit more as all sorts
of stuff is going on in them :/
Yours,
--
Ray
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-08-30 19:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-30 13:37 cannot select python mode manually Ray
2003-08-30 13:47 ` Vasily Korytov
2003-08-30 15:33 ` Eli Zaretskii
[not found] ` <mailman.1315.1062261733.29551.help-gnu-emacs@gnu.org>
2003-08-30 19:30 ` Ray
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).