summaryrefslogtreecommitdiff
path: root/.config/nyxt/my-slynk.lisp
diff options
context:
space:
mode:
Diffstat (limited to '.config/nyxt/my-slynk.lisp')
-rw-r--r--.config/nyxt/my-slynk.lisp6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/nyxt/my-slynk.lisp b/.config/nyxt/my-slynk.lisp
new file mode 100644
index 0000000..add22e8
--- /dev/null
+++ b/.config/nyxt/my-slynk.lisp
@@ -0,0 +1,6 @@
+(define-command-global start-slynk (&optional (slynk-port *swank-port*))
+ "Start a Slynk server that can be connected to, for instance, in Emacs via SLY.
+
+Warning: This allows Nyxt to be controlled remotely, that is, to execute arbitrary code with the priviledges of the user running Nyxt. Make sure you understand the security rirks associated with this before running this command."
+ (slynk:create-server :port slynk-port :dont-close t)
+ (echo "Slynk server started at port ~a" slynk-port))