jed-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: python-mode and fold-mode


Hello Perry,

Perry <js@xxxxxxxxxxxxx> wrote:
> G. Milde schrieb:
>> On 21.05.07, Joachim Schmitz wrote:
>> 
>>> I am using the python-mode from cvs, and the folding mode.
>>> the definition for py_shift_region_(left|right) ^C< ^C>
>>> collide with fold_(enter|exit)_fold. 
>>> the folding-keydefinition overwrites the pymode keydefinition.
>> 
>>> I actually never use these folding-functions, so I put in my fold_mode_hook:
>> 
>>>    local_setkey("py_shift_left",  "^C<");
>>>    local_setkey("py_shift_right", "^C>");
>> 
>>> which overwrites the folding definition. This works, is this the
>>> right-way to do it ?
>> 
>> It is a perfectly reasonable way to solve the conflict. Another
>> possibility would be to define alternative keybindings in a
>> python_mode_hook() or use the Mode-Menu shortcuts (Alt-o l and Alt-o r).
>> 
>> Once we know about the conflict, it could also be an idea to use
>> different keys for py_shift_left() and py_shift_right(). Suggestions?
>> 
> I would suggest to use different keys for enter/exit fold, I think they 
> are much more less used, at least thats the case for me. I never use 
> them and I use the folding heavily.

Yes, good argument. Why uses fold_mode the ^C prefix? Does anyone know
this? I've the same conflict with my LaTeX mode.

Kind regards, Jörg.
-- 
Die Katze steht im Mittelpunkt unserer Arbeit.
Alles was wir tun, ist für sie.

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2007 date index] [2007 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]