- Subject: Re: python-mode and folding
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Thu, 8 Dec 2005 09:00:56 -0500
Joachim Schmitz <js@xxxxxxxxxxxxx> wrote:
>there is a key-definition collision between python-mode and folding-mode
>for the ^C < and ^C >, I python-mode that is used to shift a region
>right or left, in folding-mode to enter or leave a fold. The foldmode
>definition overwrites the python-mode. I never use the enter or leave
>fold, but the pymode definition I can't miss.
>What is the best way to change this, so that it is consistent between
>jed updates ?
Try putting this in your .jedrc file:
define fold_mode_hook ()
{
if (get_mode_name() == "python")
{
local_setkey ("py_shift_region_left", "^C<");
local_setkey ("py_shift_region_right", "^C>");
}
}
--John
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2005 date index]
[2005 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]