Tinkered around with my org-publish steps a little bit – moving the config out of my .spacemacs file and into a dedicated publish.el in my wiki project, along with a Makefile to run it as a –batch process.

This way, it can be better shared with others, and I can also run it in the background – org-publish is pretty slow sadly, and blocks all of Emacs when you run it interactively.

This also takes me in the direction of having the publish step actually happen as a post-receive hook on a git remote somewhere, if I wanted to do that.

It was a bit of a faff, but I learned a bit more about Emacs and org-publish in the process, and had to do some basic elisp debugging to figure out why the org-roam backlinks stuff wasn’t working. Pleased to have learned some new things!

Improving my wiki publish step

Leave a Reply

Your email address will not be published. Required fields are marked *