Hacker News new | ask | show | jobs
by cmgxyz 2057 days ago
When I went back to school to get my CS degree, I developed a pretty strict habit of only taking my lecture notes by hand, usually by printing out the lecture slides in advance and then annotating them with a bright turquoise fountain pen ink. Nowadays, for work, I use Org mode. Apart from the convenience of always having it to hand in my editor, being able to insert hyperlinks in my notes to specific lines in our source code is a game changer.
1 comments

I'm the same, a lot of personal projects have notes on paper.

But I've been keeping a daily work-journal for the past few years, and that has been very handy. I have one org-mode file for each company I've worked in, and each day I insert a new block with headings that make sense "Meetings", "Stories/Tickets/Projects", "Problems", etc.

I make notes of commands, recipes, and tag things literally so get an integrated tag-cloud and this is exceptionally useful when I want to lookup how I did something a few months ago, or more!

Do you mean that you have a tag-cloud in Org? Is there a package for that?
Uploaded a cut-down version of my diary.org file here:

https://github.com/skx/org-worklog

That shows the tag-cloud and the necessary magic to update it on-save.

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...
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.
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.

I saw now that I have to evaluate two lines of code, how do I set up my dot-files so that this happens? I am kinda lost.
Have you tried to combine that with caldav?
I have a table which contains all the distinct tags which have been used within the document, along with a count of how often they've been used. Clicking on the tag-name shows all the places it is used - via org-tags-view.

I guess I call it a tag-cloud, even if it isn't formatted like one would imagine on a web-page.

No package, just a bit of lisp-magic. I'd be happy to share an example if it were useful.