jed-users mailing list

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

Re: Hooks and debugging


Dave Kuhlman <dkuhlman@xxxxxxxxxxxxxxx> wrote:
>The following piece of code (copied from doc/txt/hooks.txt and
>edited) was not called when in my .jedrc file.  But, it was called
>when I put it in my defaults.sl file.  Does anyone have a quick
>explanation for which things should go in the
>.jedrc file and which in the defaults.sl file?
>
>    define keybindings_hook (name)
>    {
>        if (name == "emacs")
>        {
>            % Change Alt-D from delete word to delete line.
>            unsetkey ("\ed");
>            setkey ("delete_line", "\ed");
>        }
>    }

It gets called _after_ the keybindings get installed.  So, you must
put it _before_ you load any keybindings, e.g., 

   define keybindings_hook (name) {...}
   () = evalfile ("emacs");  % Emacs bindings

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


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