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?