From 29a7557915fb6d82eb4866d8362e9401908f798d Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Mon, 15 Mar 2021 16:54:37 +0100 Subject: [PATCH] nyxt: Fix dev data profile. --- .config/nyxt/init.lisp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.config/nyxt/init.lisp b/.config/nyxt/init.lisp index 32b3af93..dd88c5ab 100644 --- a/.config/nyxt/init.lisp +++ b/.config/nyxt/init.lisp @@ -284,10 +284,11 @@ format." (load-after-system :slynk (nyxt-init-file "slynk.lisp")) -(defvar +dev-data-profile+ (make-instance 'data-profile :name "dev") - "Development profile.") +(define-class dev-data-profile (data-profile) + ((name :initform "dev")) + (:documentation "Development profile.")) -(defmethod nyxt:expand-data-path ((profile (eql +dev-data-profile+)) (path data-path)) +(defmethod nyxt:expand-data-path ((profile dev-data-profile) (path data-path)) "Persist data to /tmp/nyxt/." (expand-default-path (make-instance (class-name (class-of path)) :basename (basename path)