jed-users mailing list

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

Re: [Jed-users-l] Bug report


Hi Morten,

On Sun, Dec 26, 2010 at 11:27 PM, Morten Bo Johansen <mbj@xxxxxxxxxxx> wrote:
> define keybindings_hook (name) {
>   if (name == "cua") {
>        if (is_defined ("x_server_vendor")) { % Xjed
>             setkey ("forward_paragraph",         Key_Ctrl_Down);
>             setkey ("backward_paragraph",        Key_Ctrl_Up);
>        else {
>             setkey ("forward_paragraph",         "\e[1;5");
>             setkey ("backward_paragraph",         whatever);
>          }
>     }


WHOO HOO!!! Thanks!

Yes, that works. Though I had to use "jed -l keycode -f keycode" to
get the correct key codes. I extended this to also include moving the
cursor one word at a time (Ctrk+Right, Ctrl+Left). The only issue was
that my (x)jed does not seem to call the function "keybindings_hook".
But no biggie because I can then call keybindings_hook("cua") in my
.jedrc file, and that works.

Thanks again.

Daniel.
-- 
No trees were destroyed in the generation of this email, but a large
number of electrons were severely inconvenienced.
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l

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