jed-users mailing list

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

Re: Question about placement of setkey() calls (was: Question about mailedit.sl docs)


Marc Haber <mh+jed-users@xxxxxxxxxxxx> wrote:
>What does not work is mapping a local function to a key with setkey a
>the top level.
>
>   setkey("prepare_for_paste", "^X\"");
>
>needs to be in keybindings_hook to work. ^hw is no help here since it
>does not seem to be able to find out "Where is a function".

The proper place for setkey statements is in the keybindings hooks,
which is called by the emulation (e.g., emacs, ide, cua, etc).
However, you can use setkey statements but they must occur *after*
loading the emulation:

   setkey (...);           % This setkey statement will NOT work
   () = evalfile ("cua");  % because cua.sl will unset the binding.
   setkey (...);           % This setkey statement WILL work.

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


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