From cf9cb78d916935895f6d79a1f789a442f4e7303d Mon Sep 17 00:00:00 2001
From: noa
Date: Mon, 11 Nov 2024 12:08:57 +0800
Subject: Set up a simple sly configuration for common lisp

---
 emacs/init.el | 11 +++++++++++
 1 file changed, 11 insertions(+)

(limited to 'emacs')

diff --git a/emacs/init.el b/emacs/init.el
index 7f29d3c..521df76 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -924,3 +924,14 @@ The misspelled word is taken from OVERLAY.  WORD is the corrected word."
 
 (setopt view-read-only t)
 
+;; Common lisp development
+
+(use-package sly
+  :if (executable-find "sbcl")
+  :ensure t
+  :commands 'sly
+  :custom ((inferior-lisp-program (executable-find "sbcl"))
+           (common-lisp-hyperspec-root "file:///usr/share/doc/hyperspec/"))
+  :mode ((rx (or ".lisp" ".cl") eos) . common-lisp-mode))
+
+;; (profiler-stop)
-- 
cgit 1.4.1-2-gfad0