From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-mode alarms Date: Sat, 25 Nov 2017 12:33:43 +0000 Message-ID: <87lgiuy1ug.fsf@ucl.ac.uk> References: <20171124203719.6FF184E002D@mta-1.openmailbox.og> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIZeY-0004Nx-QC for emacs-orgmode@gnu.org; Sat, 25 Nov 2017 07:33:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIZeV-0001MW-ME for emacs-orgmode@gnu.org; Sat, 25 Nov 2017 07:33:50 -0500 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:39329) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eIZeV-0001Ll-Fy for emacs-orgmode@gnu.org; Sat, 25 Nov 2017 07:33:47 -0500 Received: by mail-wm0-x236.google.com with SMTP id x63so26777524wmf.4 for ; Sat, 25 Nov 2017 04:33:46 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: ma3434tt@openmailbox.org Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Friday, 24 Nov 2017 at 20:37, ma3434tt@openmailbox.org wrote: > What are good ways of setting up alarms for Deadlines and Scheduling > in org-mode to integrate with Windows or GNU/Linux environments? I use the following on Linux and it works very well. Relies on there being a notification daemon running (I use dunst as the easiest to configure). #+begin_src emacs-lisp ;; from Tassilo's blog: ;; and from RichardRiley's entry: http://www.emacswiki.org/emacs/OrgMode-= OSD ;; and from Nick Dokos: http://article.gmane.org/gmane.emacs.orgmode/5271 (message "ESF-ORG: setting up org->appt link") (require 'appt) (require 'notifications) (defun esf/notification-display (min-to-app new-time msg) (let (m delay) (setq m (string-to-number min-to-app) delay (if (<=3D m 0) 0 (* 1000 (- 20 m)))) (notifications-notify :title "Agenda" :body (format "%s\nIn %s minutes." msg min-to-a= pp) :app-name "emacs" :app-icon "PATHTOICONS/emacs-icon.xpm" :timeout delay))) (setq appt-display-format 'window) (setq appt-disp-window-function (function esf/notification-display)) (setq appt-delete-window-function '(lambda ())) ;; Run once, activate and schedule refresh (run-at-time "5 minutes" 3600 'org-agenda-to-appt) (appt-activate t) (setq appt-time-msg-list nil) (defadvice org-agenda-redo (after org-agenda-redo-add-appts) "Pressing `r' on the agenda will also add appointments." (progn=20 (setq appt-time-msg-list nil) (org-agenda-to-appt))) (ad-activate 'org-agenda-redo) (message "ESF-ORG: done setting up org->appt link") #+end_src =2D-=20 : Eric S Fraga via Emacs 27.0.50, Org release_9.1.3-170-g51234f --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWhljJwAKCRDIkZPY//z2 fXvJAJ4xL6oDzwZAQrWLRP1ruaRdWUj/mwCfcpZ6gZFCDY87ZdYpxUxm7Z2IT0w= =nfKV -----END PGP SIGNATURE----- --=-=-=--