>>107582744
>Common Lisp
>Is there a way to automate these steps?
;; lang: lisp
;; [2025-12-22 Mon 08:01] run startup.lisp automatically if it exists
(defun sly-run-startup ()
"Run startup.lisp in sly."
(interactive)
(if-let* ((root (project-root (project-current)))
(parts (split-string root "/"))
(name (nth (- (length parts) 2) parts))
(startup (concat (project-root (project-current)) "startup.lisp"))
(exists? (file-exists-p startup))
(connected? (sly-connected-p)))
(progn
Comment too long. Click here to view the full text.