diff options
author | Thanos Apollo <[email protected]> | 2023-12-27 10:13:55 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-12-27 10:13:55 +0200 |
commit | d2db3be0e3d4ad4b5b2b24802bc468dd5498032d (patch) | |
tree | 983c95e38a3e57316617b68647842f1382b0b96d | |
parent | d5fc50687144c505551b89e6c6817790d10bea50 (diff) |
Add gnosis-dev.el
Functoins to make testing/development of gnosis-dev.el easier
-rw-r--r-- | gnosis-dev.el | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gnosis-dev.el b/gnosis-dev.el new file mode 100644 index 0000000..57e3ddc --- /dev/null +++ b/gnosis-dev.el @@ -0,0 +1,21 @@ + +;; Random functions to make development/testing of gnosis.el easier + +;;; Code: + +(require 'gnosis) + +(defun gnosis-dev-test () + "Start testing env." + (interactive) + (let ((ask (y-or-n-p "Start development env?"))) + (if ask + (progn (setf gnosis-testing-dir (concat gnosis-dir "/testing")) + (unless (file-exists-p gnosis-testing-dir) + (make-directory gnosis-testing-dir)) + (setf gnosis-db (emacsql-sqlite-open (concat gnosis-testing-dir "/testing.db"))) + (gnosis-init)) + (setf gnosis-db (emacsql-sqlite-open (concat gnosis-dir "/" "gnosis.db")))))) + +(provide 'gnosis-dev) +;;; gnosis-dev.el ends here |