What is Nostr?
Zachary D'Anthony /
npub184e…w6ek
2024-05-22 03:55:03

Zachary D'Anthony on Nostr: Found a dope way to get some Lisp code to only run when you start a Lisp from Emacs ...

Found a dope way to get some Lisp code to only run when you start a Lisp from Emacs

https://git.sr.ht/~zyd/dotfiles/tree/481de2e06d02969c7f2e741545c53cd3f8824378/item/lisp/init.lisp#L20-25

Useful when it doesn't make sense to evaluate/load something when running a lisp in the command line versus Emacs. In this case I don't want slime-doc-contribs to be loaded when I'm in the command line. Took me a while to discover this swank "interface" (a hook) called emacs-connected. Super simple, works great.

#lisp
Author Public Key
npub184ejnrlc3p2whr4xpkxk72slwu9pfvtfg0zzv3wvk6963gtz2wnqw7w6ek