Ubuntu Linux + Racket 8.10 snap + Emacs racket-mode

alexh
Thu, 31 Aug 2023 08:52:26 +0000
General

I spent some time figuring out this behavior and I thought it might be useful to others:

On an Ubuntu Linux machine, I installed Racket 8.10 as a snap, and everything was working fine, except racket-mode in Emacs. The Racket files for racket-mode would fail to load in racket or raco with a "permission denied" error.

It turns out that snaps don't have access to configuration files in the user's home directory, and this means that they don't have access to files inside the .emacs.d folder, where racket-mode was installed.

Moving racket mode to a non-"dot folder" solved the problem. I moved mine in ~/site-lisp/racket-mode.

Hopefully this info is useful to others. Also, if you have this setup working without the above workaround, I would like to know the details.

Alex.

17 posts - 4 participants