[Python-mode] different set of colors for pairs

Andreas Röhler andreas.roehler at online.de
Fri Oct 18 10:21:16 CEST 2013


Hi Georg, hi Barry,

Am 17.10.2013 22:44, schrieb Georg Brandl:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Am 17.10.2013 21:13, schrieb Andreas Röhler:
>> Hi Barry, hi all,
>>
>> the OP says:
>>
>> "I want a different set of colors for the following pairs:
>>
>> import and from def and class try and if. "
>>
>> http://stackoverflow.com/questions/19374294/how-to-differentiate-between-colors-for-the-keywords-import-def-and-try-in/19374605#19374605
>>
>>   which would should be possible to implement as an option.
>>
>> In case, this should be the new default --or any other comments--, please
>> tell.
>
> Just one comment: Why?
>
> Not every wish on stackoverflow needs to be implemented.

Agreed.

>
> Python has few enough keywords; if people really want Tokyo-style highlighting
> they can add things to font-lock-keywords themselves.
>

IMO python-mode may provide what experienced developers need and beginners expect likewise - given the feature wanted will not go into the way of the real thing.

In this case it wouldn't, as the default would inherit the key-word face.

If we want to have more users and maybe developers, we must meet the wishes of beginners too - even if experience tells these wishes are not that justified to the extend.

BTW there are also experienced programmers preferring what you called Tokyo-style - while I'm with you in the precise question.

Adding things to font-lock-keywords themselves, that possibility is certainly at the core of Emacs.
Demonstrating the relative easiness of extending at SO should encourage further action by the OP.

Okay, thanks responding,

Hmm, Barry, did you veto it?

If you want to veto, please signal again,

otherwise just begging your pardon,

Cheers,

Andreas




More information about the Python-mode mailing list