diff options
author | Thanos Apollo <[email protected]> | 2023-12-25 05:03:03 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-12-25 05:03:03 +0200 |
commit | 02eb3c7b1abfb616f179ca311f481589d5476c4e (patch) | |
tree | 1e51e6df1905d72a84d0520e723114f56a05ad57 | |
parent | 3aa99b120a16882c26617e4775689b2d52c1b567 (diff) |
Redo gnosis-display--question
Use fill-paragraph
-rw-r--r-- | gnosis.el | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -74,15 +74,15 @@ Example: "From TABLE use where to delete VALUE." (emacsql gnosis-db `[:delete :from ,table :where ,value])) -(defun gnosis--display-question (id) - "Display main row for question ID." +(defun gnosis-display--question (id) + "Display main row for note ID." (let ((question (gnosis-get 'main 'notes `(= id ,id)))) (with-current-buffer (switch-to-buffer (get-buffer-create "*gnosis*")) (erase-buffer) - (insert question) - (sit-for 0.5)))) + (fill-paragraph (insert question)) + (sit-for 0.3)))) (cl-defun gnosis--prompt (prompt &optional (downcase nil) (split nil)) "PROMPT user for input until `q' is given. |