From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Re: Ringing the alarm bell in orgmode Date: Tue, 06 Nov 2007 14:22:47 +0000 Message-ID: <87640f8nd4.fsf@bzg.ath.cx> References: <874pfz4slg.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IpOOb-0001VI-4V for emacs-orgmode@gnu.org; Tue, 06 Nov 2007 08:23:09 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IpOOa-0001UM-37 for emacs-orgmode@gnu.org; Tue, 06 Nov 2007 08:23:08 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IpOOZ-0001U9-V3 for emacs-orgmode@gnu.org; Tue, 06 Nov 2007 08:23:07 -0500 Received: from fk-out-0910.google.com ([209.85.128.188]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IpOOZ-0006I2-HG for emacs-orgmode@gnu.org; Tue, 06 Nov 2007 08:23:07 -0500 Received: by fk-out-0910.google.com with SMTP id 19so3990250fkr for ; Tue, 06 Nov 2007 05:23:06 -0800 (PST) In-Reply-To: (Uwe Jochum's message of "Tue, 06 Nov 2007 11:23:11 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org "Uwe Jochum" writes: > Message from Nov 06 2007 (10:43): >>> But I cannot figure out how to set an alarm bell in Emacs for >>> scheduled stuff in orgmode. >> >> Did you try `org-agenda-to-appt'? > > Bastien, > > thanks! I hadn't seen that in the manual... One way to find information when browsing the manual in Info-mode is to press `i' (M-x Info-index) and enter the index key to look for. Here you can look for "appointment reminders" or "appt.el" and it will open this page: (info "(org)Weekly/Daily agenda") If you think this information should appear somewhere else, please suggestion other location(s). > It works, but I have to do it manually evry time I start orgmode or > every time I set a new appointment. Wouldn't it be good to make this > more automatic, i.e. somehow configurable by the user, for instance > like so: make it an option, so I can activate it globally in the > org-agenda options menu, in such a way that new appointments are > detected automatically and the bell rings without doing > org-agenda-to-appt by hand? Better let the user decide by himself when he wants `org-agenda-to-appt' to be called. Two (non-exclusive) methods: 1. Add a hook to `before-save-hook' locally in `org-mode-hook' so that saving an Org buffer will check for new appointments and add them to the list of appointments: (add-hook 'org-mode-hook (lambda() (add-hook 'before-save-hook 'org-agenda-to-appt t t))) Note that pressing `s' in agenda buffers will save all agenda files and run `org-agenda-to-appt' for each of them. 2. Add a custom key to call 'org-agenda-to-appt from an agenda buffer. (org-defkey org-agenda-mode-map "\C-cA" 'org-agenda-to-appt) If you use one of these two methods, maybe it's better to silent `org-agenda-to-appt' since the repeated messages can be annoying. I'll provide a way to do this. -- Bastien