Skip to content

Instantly share code, notes, and snippets.

@svspire
svspire / MAYB-fasl-sanity.lisp
Created September 5, 2024 16:05
Tell ASDF to put your fasl files where you want. Part of the MAYB project.
;;; MAYB-fasl-sanity.lisp
(in-package :cl-user)
; Force ASDF *not* to use ~/.cache but to put fasl files in the same directory as their source.
(eval-when (:load-toplevel :execute)
(let ((sourcereg (probe-file #P"~/.config/common-lisp/source-registry.conf")))
(when sourcereg
(warn "Old-style asdf source registry file found at ~S. This will likely cause problems with ASDF ~
; Inspired by emails from [email protected] to info-mcl in February 2021
; Uncomment one of the following depending on whether this machine is a broadcaster or receiver
;(pushnew :broadcaster *features*)
;(pushnew :receiver *features*)
(defparameter *count* 0)
(defparameter *listening-port* 40001)
(defparameter *remote-host* "10.10.10.255" "or 192.168.1.255 or whatever matches your local network")
@svspire
svspire / emacs-clos-help.el
Created December 18, 2020 01:43
Defclass Emacs keyboard macro
;Add a command control-meta-s which expands a slot name or list of slot-names
;into a full slot specification.
; Based on fred-clos-help.lisp
; by Alan Ruttenberg
; [email protected]
; Converted to emacs lisp by Shannon Spires
;(foo bar)<control-meta-s>
;-->