clock-table and hooking that into org-capture file+olp+datetree

2021-01-30 Thread Christopher Causer
Hello everyone! Here's a reasonably easy (I think) question because I'm quite new to Emacs and org-mode. I have an org-capture template using file+olp+datetree[1], which works great at filing my thoughts for the day. Separately I know I can generate clock tables[2] based on dynamic blocks to sh

Re: clock-table and hooking that into org-capture file+olp+datetree

2021-01-30 Thread Christopher Causer
Thanks again Richard. I now have a working solution which I share below, warts and all. One snag I hit that I feel I should mention is what I believe to be a mistake in the documentation[1]. I was scratching my head as why org-clocktable-defaults wasn't working, but it was only when I brought u

Re: clock-table and hooking that into org-capture file+olp+datetree

2021-01-30 Thread Christopher Causer
On Sat, 30 Jan 2021, at 12:53, Richard Lawrence wrote: > #+begin_src emacs-lisp > (defun org-update-clocktable-on-date (date) > (save-excursion > ;; open the file containing the datetree: > (find-file (concat org-directory "/diary.org")) > ;; jump to the subtree for the given date: >

clock-table and hooking that into org-capture file+olp+datetree

2021-01-30 Thread Christopher Causer
Hello everyone! Here's a reasonably easy (I think) question because I'm quite new to Emacs and org-mode. I have an org-capture template using file+olp+datetree[1], which works great at filing my thoughts for the day. Separately I know I can generate clock tables[2] based on dynamic blocks to sh