Also, in `cursory-store-latest-preset' you use lisp-data-mode, but that was added with Emacs 28. It shouldn't really be an issue, but "fixing" it doesn't seem that difficult either: