summaryrefslogtreecommitdiff
path: root/.config/nyxt/my-slynk.lisp
diff options
context:
space:
mode:
authorPaul Iannetta <paul.iannetta@ens-lyon.fr>2022-04-21 23:24:14 +0200
committerPaul Iannetta <paul.iannetta@ens-lyon.fr>2022-04-21 23:24:14 +0200
commitfbb365066f81029e35941e0528be9b3e33d86280 (patch)
treeedf93a309b792a0c6d6df2d1d96517d2fdeb8af8 /.config/nyxt/my-slynk.lisp
parent0e17bc4c0540c5c8fc884c783bda369ebf23c021 (diff)
add nyxt browser config
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))