In the process of getting SyncThing set up on the Framework I came back across the folder of published Denote notes from a very intense kick I went on over the summer to make my Emacs org mode notes accessible from wherever.
I can’t find all the posts from the older blog on it, so to summarize:
Denote is a note-taking tool in Emacs. Its main thing is that it uses filenaming conventions to provide a chunk of the metadata for a given note. You can write notes in org or Markdown markup, or in plain text. I really wanted to be able to read my Denote notes anywhere, and none of the mobile Emacs solutions worked very well.
I ended up working out a neat solution wherein I automated:
-
Publishing all the Denote notes to HTML using org-publish
-
Using fuse.js to index all the notes for fast fuzzy search
-
Using syncthing to get the HTML and a search page using fuse.js onto my Synology
-
Using Tailscale to securely share the notes to any of my devices connected to my Tailscale network
Thanks to SimpleCSS the notes page works great on any device. With Fuse.js the search is really fast. Once you’ve done an initial publish-and-index run, publishing the notes is very fast and syncthing gets everything into place on the Synology webserver quickly. The whole thing is one of my favorite little hacks of all time.
I posted the recipe as a Gist, including the Python script that handles the fuse.js indexing along with all the supporting elisp configuration.
