chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2478e2f
)
el/dot-emacs.el: Hoist definition of `mdw-diary-for-org-mode-p'.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 27 Jan 2022 23:23:45 +0000
(23:23 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 27 Jan 2022 23:23:45 +0000
(23:23 +0000)
el/dot-emacs.el
patch
|
blob
|
blame
|
history
diff --git
a/el/dot-emacs.el
b/el/dot-emacs.el
index a90c58a6e138439da746cdd4c71445555d0b74f5..67a5d1e888031386ac8729547859a79e0ddc080d 100644
(file)
--- a/
el/dot-emacs.el
+++ b/
el/dot-emacs.el
@@
-368,6
+368,9
@@
(defadvice exchange-point-and-mark
;; Functions for sexp diary entries.
;; 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)
(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
@@
(defun mdw-todo (&optional when)
(nth 2 when))))))))
(eq w d)))
(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))
(defadvice org-agenda-list (around mdw-preserve-links activate)
(let ((mdw-diary-for-org-mode-p t))
ad-do-it))