help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toggle appointment notification


From: Andreas
Subject: Re: Toggle appointment notification
Date: Tue, 01 Dec 2020 10:13:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

On Tue, Dec 01, 2020 at 04:47:55 AM, pietru@caramail.com wrote:

> Want to toggle between enable and disable appointment notification and have
> put a defun as so below.  I reckon that both  appt-activate and appt-check
> are needed but not absolutely aware of what and how they activate things
> for appointments.
>
> What would be a right approach to toggle between enable and disable using
> a single key-sequence for my case here?
>
> (defun diary-appt-ntf (n)
>    "Switches diary appointment notification."
>
>    (appt-activate n)  ; Activates diary appointment notification
>
>    (if (< n 1)
>      (appt-check 1)    ; Checks appointments and updates reminders.
>      (appt-check nil)) ; Disables appt-check
> )
>
>
>

-- 
Regards,
Andreas

Attachment: pgpwdfEsk9dCz.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]