From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard G Riley Subject: Re: Re: Ringing the alarm bell in orgmode Date: Tue, 06 Nov 2007 14:55:31 +0100 Message-ID: References: <874pfz4slg.fsf@bzg.ath.cx> <87640f8nd4.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 1IpOu3-00042W-0o for emacs-orgmode@gnu.org; Tue, 06 Nov 2007 08:55:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IpOu2-00040b-2m for emacs-orgmode@gnu.org; Tue, 06 Nov 2007 08:55:38 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IpOu1-00040E-Ti for emacs-orgmode@gnu.org; Tue, 06 Nov 2007 08:55:37 -0500 Received: from fk-out-0910.google.com ([209.85.128.184]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IpOu1-0007Kd-FK for emacs-orgmode@gnu.org; Tue, 06 Nov 2007 08:55:37 -0500 Received: by fk-out-0910.google.com with SMTP id 19so4003863fkr for ; Tue, 06 Nov 2007 05:55:36 -0800 (PST) In-Reply-To: <87640f8nd4.fsf@bzg.ath.cx> (Bastien's message of "Tue\, 06 Nov 2007 14\:22\:47 +0000") 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: Bastien Cc: emacs-orgmode@gnu.org Bastien writes: > "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. Is it just me or are emacs info pages really a bit of a dog to search through? > > 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.