From: Robert Pluim <rpluim@gmail.com>
To: <help-gnu-emacs@gnu.org>
Cc: Manuel Giraud <manuel@ledu-giraud.fr>
Subject: Re: Org agenda and appointments
Date: Fri, 10 Mar 2023 12:10:06 +0100 [thread overview]
Message-ID: <87jzzox3ox.fsf@gmail.com> (raw)
In-Reply-To: <87fsac52fv.fsf@ledu-giraud.fr> (Manuel Giraud via Users list for the's message of "Fri, 10 Mar 2023 11:31:23 +0100")
>>>>> On Fri, 10 Mar 2023 11:31:23 +0100, Manuel Giraud via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> said:
Manuel> Hi,
Manuel> I like to have Emacs remind me of upcoming appointments. For this, I
Manuel> have put "(appt-activate 1)" in my init file and it works automagically
Manuel> for anything that is (or will be) into the Diary.
Manuel> Now, I'm also using Org agenda. For instance, I use 'org-capture' to
Manuel> enter some new appointment. The Info manual says that I should call
Manuel> 'org-agenda-to-appt' to add Org agenda appointments and also have
Manuel> notifications about those. The problem is that I could forget to make
Manuel> this call after entering a new appointment.
Manuel> Inspired by what is done in 'appt-active', I came up with the following
Manuel> solution in my init file:
Manuel> (defun +org-agenda-update-appt ()
Manuel> (when (member buffer-file-name (org-agenda-files))
Manuel> (org-agenda-to-appt))
Manuel> nil)
Manuel> (add-hook 'write-file-functions #'+org-agenda-update-appt)
Manuel> So my question is: Is there a better/cleaner interface to do this?
Manuel> Because what I have done seems bit tricky from a user point of view.
I think this is what `org-capture-after-finalize-hook' is for.
Robert
--
next prev parent reply other threads:[~2023-03-10 11:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-10 10:31 Org agenda and appointments Manuel Giraud via Users list for the GNU Emacs text editor
2023-03-10 11:10 ` Robert Pluim [this message]
2023-03-10 13:42 ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-03-10 13:58 ` Manuel Giraud via Users list for the GNU Emacs text editor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87jzzox3ox.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=manuel@ledu-giraud.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.