From: Mark Wooding Date: Thu, 27 Jan 2022 23:23:45 +0000 (+0000) Subject: el/dot-emacs.el: Hoist definition of `mdw-diary-for-org-mode-p'. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/6c0b60796d4e0c7ada1c0673e90e74e0a8462c77 el/dot-emacs.el: Hoist definition of `mdw-diary-for-org-mode-p'. --- diff --git a/el/dot-emacs.el b/el/dot-emacs.el index a90c58a..67a5d1e 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -368,6 +368,9 @@ it's currently off." ;; Functions for sexp diary entries. +(defvar mdw-diary-for-org-mode-p nil + "Display diary along with the agenda?") + (defun mdw-not-org-mode (form) "As FORM, but not in Org mode agenda." (and (not mdw-diary-for-org-mode-p) @@ -447,9 +450,6 @@ as output rather than a string." (nth 2 when)))))))) (eq w d))) -(defvar mdw-diary-for-org-mode-p nil - "Display diary along with the agenda?") - (defadvice org-agenda-list (around mdw-preserve-links activate) (let ((mdw-diary-for-org-mode-p t)) ad-do-it))