From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erwin Panen Subject: Re: Alarms in orgmode Date: Fri, 06 Nov 2009 18:18:10 +0100 Message-ID: <4AF45A52.9090403@fastmail.fm> References: <4AF2E545.3060309@fastmail.fm> <87r5sbzrxd.fsf@mundaneum.com> Reply-To: erwinpanen@fastmail.fm Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N6SSS-0001Ya-O6 for emacs-orgmode@gnu.org; Fri, 06 Nov 2009 12:18:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N6SSN-0001U1-LG for emacs-orgmode@gnu.org; Fri, 06 Nov 2009 12:18:43 -0500 Received: from [199.232.76.173] (port=34088 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N6SSN-0001Tw-Cg for emacs-orgmode@gnu.org; Fri, 06 Nov 2009 12:18:39 -0500 Received: from lo.gmane.org ([80.91.229.12]:57642) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N6SSN-0005oK-0G for emacs-orgmode@gnu.org; Fri, 06 Nov 2009 12:18:39 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1N6SSI-00081c-2y for emacs-orgmode@gnu.org; Fri, 06 Nov 2009 18:18:34 +0100 Received: from 83.101.78.37 ([83.101.78.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Nov 2009 18:18:34 +0100 Received: from erwinpanen by 83.101.78.37 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Nov 2009 18:18:34 +0100 In-Reply-To: <87r5sbzrxd.fsf@mundaneum.com> 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 Cc: public-emacs-orgmode-mXXj517/zsQ@lo.gmane.org Hi Sébastien, Un grand merci! Big thank you - I'll try this out. Erwin Sébastien Vauban wrote: > Hi Erwin, > > Erwin Panen wrote: >> I was looking to set an audible alarm or at least display a message of some >> kind. Google brought me no results, apart from capabilities that are within >> Emacs itself, namely the diary & appointments. >> http://www.gnu.org/software/emacs/manual/html_node/emacs/Appointments.html >> >> Can anyone point me to how to do this, if possible at all. >> (I'm on windows environment, but interested in Linux too.) > > The following works for me (yes, I know, I should clean a bit) under Ubuntu at > least. > > --8<---------------cut here---------------start------------->8--- > (require 'org-agenda) > > ;; Insinuate appt > (require 'appt) > (setq appt-time-msg-list nil) > (org-agenda-to-appt) > ;; When use 'r' (rebuild agenda) reload appt > (add-hook 'org-agenda-mode-hook (lambda () > (setq appt-time-msg-list nil) > (org-agenda-to-appt))) > (setq appt-audible t) > (setq appt-display-format 'echo) > > ;; turn appointment checking on > (appt-activate 1) > > ;; time in minutes before an appointment that the warning begins > (setq appt-message-warning-time 15) ; 12 > > ;; number of minutes to wait between checking the appointment list > (setq appt-display-interval 5) ; 3 > > ;; update appt each time agenda opened > (add-hook 'org-finalize-agenda-hook 'org-agenda-to-appt) > > (when window-system > (setq appt-display-format 'window) > > ;; FIXME Check `notify-send' (in `libnotify-bin' Ubuntu package) is installed > (defun rgr/org-display (min-to-app new-time msg) > (shell-command > (concat "notify-send " > "-i /usr/share/icons/gnome/32x32/status/appointment-soon.png " > "'Appointment' " > "'" msg "'"))) > ;; TODO For Windows users: use todochicku.el and the snarl notifier > > (setq appt-disp-window-function (function rgr/org-display))) > --8<---------------cut here---------------end--------------->8--- > > Take what's of use for you from the above. > > Best regards, > Seb >