summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/nyxt/auto-config.lisp2
-rwxr-xr-x.config/nyxt/init.lisp9
-rw-r--r--.config/nyxt/my-slynk.lisp6
3 files changed, 17 insertions, 0 deletions
diff --git a/.config/nyxt/auto-config.lisp b/.config/nyxt/auto-config.lisp
new file mode 100644
index 0000000..58801d1
--- /dev/null
+++ b/.config/nyxt/auto-config.lisp
@@ -0,0 +1,2 @@
+(DEFINE-CONFIGURATION BUFFER
+ ((PASSWORD-INTERFACE (make-instance 'password:user-password-store-interface))))
diff --git a/.config/nyxt/init.lisp b/.config/nyxt/init.lisp
new file mode 100755
index 0000000..5e8214c
--- /dev/null
+++ b/.config/nyxt/init.lisp
@@ -0,0 +1,9 @@
+(define-class dev-data-profile (data-profile)
+ ((name :initform "dev"))
+ (:export-class-name-p t)
+ (:documentation "With the dev profile all data is persisted to the standard locations."))
+
+(load-after-system :slynk "~/.config/nyxt/my-slynk.lisp")
+
+; (define-configuration buffer
+; ((password-interface (make-instance 'password:password-store-interface))))
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))