From 52ad4c259a51571ddbf40501464eb80abd5f9550 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Thu, 14 Dec 2023 11:03:54 +0200 Subject: Rename: gnosis-create-question -> gnosis-add-note --- gnosis.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gnosis.el') diff --git a/gnosis.el b/gnosis.el index 704e0ee..6ed4f63 100644 --- a/gnosis.el +++ b/gnosis.el @@ -124,11 +124,11 @@ TAGS are used to organize questions." (error "The correct answer must be the number of the correct answer")) (gnosis--insert-into 'notes `([nil "mcq" ,question ,choices ,correct-answer ,tags, nil nil nil ,deck]))) -(defun gnosis-create-question (type) - "Create question as TYPE." +(defun gnosis-add-note (type) + "Create note as TYPE." (interactive (list (completing-read "Type: " '(MCQ Cloze Basic)))) (pcase type - ("MCQ" (call-interactively 'gnosis-create-mcq-question)) + ("MCQ" (call-interactively 'gnosis-add-mcq-question)) ("Cloze" (message "Not ready yet.")) ("Basic" (message "Not ready yet.")) (_ (message "No such type.")))) -- cgit v1.2.3