help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No syntax highlighting in python mode


From: Lowell Gilbert
Subject: Re: No syntax highlighting in python mode
Date: Wed, 08 Dec 2010 15:07:54 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (berkeley-unix)

Tim Johnson <tim@johnsons-web.com> writes:

> On 2010-05-10, Lowell Gilbert <lgusenet@be-well.ilk.org> 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.


reply via email to

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