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


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?

Guenter

--------------------------
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]