jed-users mailing list

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

Re: Popup on mode load


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");
}
 
> BTW: How do you think about such a thing? Is it nerved or is it helpful?

As it is almost as easily implemented as turned of if not wanted, I'd rather
see it in the USAGE section of latex2jed than as a default.

Günter

-- 
Milde at ife.et.tu-dresden.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>.


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