From 9fc89af6c7a27cff07b3c25fa5a29497d799305f Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 12 Jun 2017 09:43:24 -0500 Subject: [PATCH] add timeline all command --- emacs_el/configuration/org-mode-configuration.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/emacs_el/configuration/org-mode-configuration.el b/emacs_el/configuration/org-mode-configuration.el index b58a00d..0af973a 100644 --- a/emacs_el/configuration/org-mode-configuration.el +++ b/emacs_el/configuration/org-mode-configuration.el @@ -1102,4 +1102,16 @@ same directory as the org-buffer and insert a link to this file." (min (1+ (match-end 0)) end))) (unless (bolp) (insert "\n")))))))))))) +; from https://emacs.stackexchange.com/questions/909/how-can-i-have-an-agenda-timeline-view-of-multiple-files +(defun org-agenda-timeline-all (&optional arg) + (interactive "P") + (with-temp-buffer + (dolist (org-agenda-file org-agenda-files) + (insert-file-contents org-agenda-file nil) + (end-of-buffer) + (newline)) + (write-file "/tmp/timeline.org") + (org-agenda arg "L"))) +(define-key org-mode-map (kbd "C-c t") 'org-agenda-timeline-all) + (provide 'org-mode-configuration) -- 2.39.2