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
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