- Subject: Re: Namespaces for modes?
- From: Paul Boekholt <p.boekholt@xxxxxxxxx>
- Date: Sun, 20 Jul 2003 17:09:45 +0200
On Tue, Jul 15, 2003 at 09:47:03AM +0200, Guenter Milde wrote:
> Functions that are only used by the same mode or derived modes can be in the
> named namespace (although I sometimes use mode_* even there, for clarity
> within the mode.sl file).
> This also works for functions to be bound to the modes keymap or menu entries
> with e.g.
> definekey("mode->fun", Key_F11);
The next version of cal.sl will have a function mark_diary_entries() that
will highlight dates for which you have diary entries. Users may want their
appointments highlighted on starting the calendar with some lines in their
.jedrc:
autoload("mark_diary_entries", "cal");
define calendar_mode_hook()
{
mark_diary_entries();
}
If mark_diary_entries() were static this wouldn't be possible - you would
have to require("cal") which is 600 lines.
--------------------------
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]