zyd on Nostr: Found a dope way to get some Lisp code to only run when you start a Lisp from Emacs ...
Published at
2024-05-22 03:55:03Event JSON
{
"id": "af04d2835da8d35c4e32172f2445b54f771a596df89dde33f86395d4ada18d80",
"pubkey": "3d73298ff88854eb8ea60d8d6f2a1f770a14b16943c42645ccb68ba8a16253a6",
"created_at": 1716350103,
"kind": 1,
"tags": [
[
"t",
"lisp"
],
[
"proxy",
"https://emacs.ch/users/zyd/statuses/112482720400693921",
"activitypub"
]
],
"content": "Found a dope way to get some Lisp code to only run when you start a Lisp from Emacs\n\nhttps://git.sr.ht/~zyd/dotfiles/tree/481de2e06d02969c7f2e741545c53cd3f8824378/item/lisp/init.lisp#L20-25\n\nUseful 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.\n\n#lisp",
"sig": "7fdc0e70ff26d6cef6f8410213b6e650c47d876fa37c082521db8889b73e1edd8b4678d14a8f45c236f71d0ed2c8b5fd9d9b8ccdfb8944f6cf5737f45badc921"
}