- Subject: Re: Popup on mode load
- From: Joerg Sommer <joerg@xxxxxxxxxxxx>
- Date: Tue, 17 Jun 2003 16:25:10 +0000 (UTC)
begin Günter Milde <milde@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Sun, Jun 15, 2003 at 06:52:24PM +0000, Joerg Sommer wrote:
>> Hello,
>>
>> how to popup a menu on mode load? If a empty latex file is loaded, I
>> would like a popup (Mode.Templates) for selection a template, that's
>> filled in.
>
> How about
>
> define latex_mode_hook ()
> {
> define_blocal_var("run_buffer_hook", "latex_compose");
> % ... or whatever your current latex_mode_hook is
> if (bobp and eobp) % buffer empty
> menu_select_menu("Global.M&ode.&Templates");
> }
That's also my idea, but I get an error, if I write that.
Jörg.
--------------------------
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]