Re:Show HN: Dendron – A Hierarchical Tool for Thought
by githubalphapapa on Tuesday October 27, 2020 @10:59AM
(#24908039)
Thanks, that's a great example of how Org documents can integrate code that provides interactivity. I shared it on Reddit: https://www.reddit.com/r/emacs/comments/jj2ok0/skxorgworklog...
Re:Show HN: Dendron – A Hierarchical Tool for Thought
by hagenek on Tuesday October 27, 2020 @03:59PM
(#24911169)
I cannot get it to work with M-x new-day, is there something other I need to do than have the document open? Thanks for sharing btw.
Re:Show HN: Dendron – A Hierarchical Tool for Thought
by stevekemp on Wednesday October 28, 2020 @12:35AM
(#24915279)
You need to evaluate the lisp at the bottom of the file, so that `M-x new-day`, `M-x today` and the other stuff gets loaded.
I've got a bit of code in my init-files that does that automatically, that's linked to in the readme. But as a quick alternative you can scroll down to the end, to the line that starts:
"(defun new-day"
Select that line, and all the way down to the line that reads "(require 'ob-org)", and then run "M-x eval-region". That will evaluate the region and make the two new commands available.Otherwise copy and paste the lisp from here into your emacs init file, and reload everything:
https://github.com/skx/dotfiles/blob/master/.emacs.d/init.md...
That will cause anything named `skx-startblock` to be evaluated automatically from an org-file on-load, and will also run the contents of `skx-saveblock` before saving any org-file, if present.
https://github.com/skx/org-worklog
That shows the tag-cloud and the necessary magic to update it on-save.