summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-11-29 08:05:25 +0200
committerThanos Apollo <[email protected]>2023-11-29 08:05:25 +0200
commit658a7c2f246e6adaa37c8e27d547e0b26ee46150 (patch)
tree491c15d3c323ef8e4dda87182f9d8911f763fa5c /gnosis.el
parentac99bcc1583147f9e6ee8e071efb8071bc515d0d (diff)
Update gnosis-init & test buffer for testing purposes
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el15
1 files changed, 10 insertions, 5 deletions
diff --git a/gnosis.el b/gnosis.el
index 84e33bb..18c657b 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -137,17 +137,22 @@ use it like this:
(interactive)
(with-current-buffer
(switch-to-buffer (get-buffer-create "*gnosis*"))
- (setq-local minibuffer-history nil)
+ (read-only-mode 0)
+ (erase-buffer)
(gnosis--display-question 1)
(gnosis-review 1)
(gnosis-mode)))
(defun gnosis-init ()
"Create notes content table."
- (gnosis--create-table 'notes '([(question_id integer :primary-key)
- type
- question
- choices
+ (interactive)
+ (condition-case nil
+ (gnosis--drop-table 'notes)
+ (error (message "No NOTES table to drop, recreating new one.")))
+ (gnosis--create-table 'notes '([(id integer :primary-key)
+ (type text)
+ (main text)
+ options
answer
tags
rev_log