From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lowell Gilbert Newsgroups: gmane.emacs.help Subject: Re: No syntax highlighting in python mode Date: Tue, 11 May 2010 10:35:44 -0400 Message-ID: <44k4ra5wvz.fsf@be-well.ilk.org> References: <44hbmfldaq.fsf@be-well.ilk.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291826649 17283 80.91.229.12 (8 Dec 2010 16:44:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 16:44:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 17:44:05 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQN7d-00005s-Bo for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 17:44:05 +0100 Original-Received: from localhost ([127.0.0.1]:49790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQN7c-00064g-7U for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 11:44:04 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.speakeasy.net!news.speakeasy.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 11 May 2010 09:35:45 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (berkeley-unix) Cancel-Lock: sha1:PE4mFHkAbFKmhfmMfZB5b7i1S3k= Original-Lines: 35 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 66.92.78.145 Original-X-Trace: sv3-t2i+EE3LTH/4NGmlhZ9nZtXbneHxy6tbnJ7WBmps3VL5z0HlMSkBHXjqXYhfHJ/tSQdVHk76zC82JZa!MSWO600evnLOaQl/A4NpPPj3DQxkv7wCjpZZCapn4dja7jxuYPzcdVA9y30NV+ID9/Qd2vHfv1bT!ZdAHbsJIfg== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: usenet.stanford.edu gnu.emacs.help:178130 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75635 Archived-At: Tim Johnson writes: > On 2010-05-10, Lowell Gilbert wrote: >>> Hmm! See >>> http://www.emacswiki.org/emacs/PythonMode >>> where it says: >>> """ >>> Emacs post version 21 has its own python mode (python.el). This is >>> enabled by default for .py files so you don?t have to add anything to >>> your InitFile to use it. >>> """ >>> I believe the statement above is incorrect. I had to use the >>> require form - I.E. (require 'python) to activate the syntax >>> highlighting. >> >> I can't reproduce that. In fact: >> >> emacs -q /usr/share/yum-cli/yumcommands.py >> >> gives me python-mode *with* syntax color. >> [Also on 23.1.1] > > Then I withdraw this statement: >>> I believe the statement above is incorrect. I had to use the > > My problem may be from a side effect of something else in my .emacs > or other configuration. It may be something not under your own control, however. In particular, some OS distributions add their own local configurations to their emacs installations. I recommend doing the same test I did. If it has the same problem you saw with your configuration, try the option "--no-site-file" as well.