本文翻译自 http://doc.norang.ca/org-mode.html ,原文作者为Bernt Hansen 。由于原文较长,因此会分多篇文章来发布。转载请标记出处。
1 提醒
我使用appt来实现org-mode提醒功能。它简单而不唐突–将待处理的情况显示到状态栏并且每隔12,9,6,3以及 0分钟提示。
每次显示agenda视图时候(我会经常这么做)约定列表就会清除然后根据今天的情况重新创建。这意味着每次当我打开agenda视图,当有任务被重新计划,或者新加新任务,或者删除任务提醒列表 都会自动更新。
1.1 提醒设置
; Erase all reminders and rebuilt reminders for today from the agenda
(defun bh/org-agenda-to-appt ()
(interactive)
(setq appt-time-msg-list nil)
(org-agenda-to-appt))
; Rebuild the reminders everytime the agenda is displayed
(add-hook 'org-finalize-agenda-hook 'bh/org-agenda-to-appt 'append)
; This is at the end of my .emacs - so appointments are set up when Emacs starts
(bh/org-agenda-to-appt)
; Activate appointments so we get notifications
(appt-activate t)
; If we leave Emacs running overnight - reset the appointments one minute after midnight
(run-at-time "24:01" nil 'bh/org-agenda-to-appt)