From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ray Newsgroups: gmane.emacs.help Subject: Re: cannot select python mode manually Date: Sat, 30 Aug 2003 19:30:25 +0000 Organization: x Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <5064b.2113$bC1.838@newsfep4-winn.server.ntli.net> References: <6R04b.1871$bC1.366@newsfep4-winn.server.ntli.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1062268448 759 80.91.224.253 (30 Aug 2003 18:34:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 30 Aug 2003 18:34:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 30 20:34:06 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19tAY2-00058R-00 for ; Sat, 30 Aug 2003 20:34:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19tAV4-0005fT-5t for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Aug 2003 14:31:02 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!newspeer1-gui.server.ntli.net!ntli.net!newsfep4-winn.server.ntli.net.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 User-Agent: KNode/0.7.2 Original-NNTP-Posting-Host: 81.98.115.64 Original-X-Complaints-To: abuse@ntlworld.com Original-X-Trace: newsfep4-winn.server.ntli.net 1062268033 81.98.115.64 (Sat, 30 Aug 2003 19:27:13 BST) Original-NNTP-Posting-Date: Sat, 30 Aug 2003 19:27:13 BST Original-Xref: shelby.stanford.edu gnu.emacs.help:116286 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12204 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12204 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