- Subject: Re: Hooks and debugging
- From: "John E. Davis" <davis>
- Date: Mon, 2 Jun 2003 17:53:51 -0400
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]