tyx's corner

org-mode

Pin GnuPG version for Emacs with Nix

This has been resolved on GnuPG version 2.4.4, it still is interesting to see how nix could help find an easy workaround to this issue. Some time ago, I upgraded Emacs to version 29.1 which has some issues with GnuPG >= 2.4.1. At first, I simply fell back to GnuPG 2.2.x using pkgs.gnupg22 in my Nix configuration but since it is insecure, Nix refused to build without me setting the NIXPKGS_ALLOW_INSECURE environment variable to 1.

Archive org tasks to org-roam dailies

The snippets in the following article won’t work with tasks that require taking a note after being set: you’ll be left with a note where the task was. I recently stumbled upon this article from systemcrafters, and quite liked the idea of being able to store DONE tasks into org-roam dailies. However, I already had a working system using org archives which held metadata about the task and kept hierarchy, and I wanted to avoid scrapping that (I also think it makes more sense to archive DONE tasks than to refile them) so I adapted the snippet from systemcrafters’ article to fit my needs.