jed-users mailing list

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

Re: save/load macros?


On Sat 2007-08-11 (14:05), John E. Davis wrote:

> tweak your keybindings, then your macro might be (negatively)
> affected.  In any case, if you want to reuse a macro in a future jed
> session, you really should enable it in the appropriate mode hook.

Ok, I see the problem.

Nevertheless I would try to reload a saved a macro nevertheless the
current mode - as an experient, at first.

My experimental code looks:

    define F11() {
      variable m = line_as_string;
      setkey(m,"\e[23~");
    }

And a buffer with macro definition contains:

    @^A>^E<^[OC

When I now call F11() in this buffer, the F11-key is defined with that
macro, but only in this buffer, because of the current keymap.
The other buffer with my slang-code has the keymap "C" and the new F11 key
defintion is not there. How can I do a setkey in all keymaps?


-- 
Ullrich Horlacher              Informationssysteme und Serverbetrieb
Rechenzentrum                  E-Mail: horlacher@xxxxxxxxxxxxxxxxxxxx
Universitaet Stuttgart         Tel:    ++49-711-685-65868
Allmandring 30                 Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.rus.uni-stuttgart.de/

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


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