From 629a644c398df438b19065996025ae3bf01f5e89 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 9 Feb 2022 01:11:18 -0800 Subject: [PATCH] [nyxt] Protect against trying to start swank multiple times --- nyxt/.config/nyxt/init.lisp.org | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nyxt/.config/nyxt/init.lisp.org b/nyxt/.config/nyxt/init.lisp.org index 484d8ff..ce1ec07 100644 --- a/nyxt/.config/nyxt/init.lisp.org +++ b/nyxt/.config/nyxt/init.lisp.org @@ -121,5 +121,9 @@ Set up capturing URLs with org-capture in Emacs. From https://ag91.github.io/blo Start Swank so I can connect to it through Emacs. #+begin_src lisp - (start-swank) + (defvar *init-swank-started* nil) + + (unless *init-swank-started* + (start-swank) + (setf *init-swank-started* t)) #+end_src