mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 16:24:18 +00:00
Org agenda export
This commit is contained in:
parent
a5e06c331f
commit
353c55c3d7
1 changed files with 25 additions and 12 deletions
|
|
@ -694,21 +694,34 @@
|
|||
|
||||
(setq org-agenda-hide-tags-regexp
|
||||
(rx (or "prod"
|
||||
(and symbol-start "_" (+ nonl) "_" symbol-end))))
|
||||
(and symbol-start "_" (+ nonl) "_" symbol-end)
|
||||
"Project" "active")))
|
||||
|
||||
(defun my/org-agenda-save ()
|
||||
(interactive)
|
||||
(my/switch-themes)
|
||||
(-->
|
||||
"%Y-%m-%d-agenda.html"
|
||||
(format-time-string it)
|
||||
(expand-file-name it "~/")
|
||||
(org-agenda-write it))
|
||||
(-->
|
||||
"agenda.html"
|
||||
(expand-file-name it "~/")
|
||||
(org-agenda-write it))
|
||||
(my/switch-themes))
|
||||
(save-window-excursion
|
||||
(my/switch-themes)
|
||||
(unwind-protect
|
||||
(progn
|
||||
(let ((accept nil)
|
||||
(width 100))
|
||||
(while (not accept)
|
||||
(delete-other-windows)
|
||||
(split-window-horizontally 100)
|
||||
(org-agenda-redo-all)
|
||||
(setq accept (y-or-n-p "Looks good? ")
|
||||
width (if accept width
|
||||
(read-number "Width? " 100)))))
|
||||
(-->
|
||||
"%Y-%m-%d-agenda.html"
|
||||
(format-time-string it)
|
||||
(expand-file-name it "~/")
|
||||
(org-agenda-write it))
|
||||
(-->
|
||||
"agenda.html"
|
||||
(expand-file-name it "~/")
|
||||
(org-agenda-write it))))
|
||||
(my/switch-themes)))
|
||||
|
||||
(defun org-agenda-dump-for-meeting ()
|
||||
(interactive)
|
||||
|
|
|
|||
Loading…
Reference in a new issue