summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-03-03 02:28:39 +0200
committerThanos Apollo <[email protected]>2024-03-03 02:28:39 +0200
commit3990051bcfb0b98ca2e580f6f3a8d5fd5b9e671e (patch)
treee237a2a118ab1cfc78bcf620fe25ed2c2b266e45 /gnosis.el
parent619970bccb8e097d8de4cf1e023fdf9f377dadf6 (diff)
gnosis-edi-note: Use local-set-key
Using local-set-key we specify exit-func for gnosis-edit-save-exit to return back to dashboard for "Notes"
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/gnosis.el b/gnosis.el
index 2385903..0aa67ab 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -978,7 +978,7 @@ Returns a list of the form ((yyyy mm dd) (ef-increase ef-decrease ef-total))."
:success success
:increase gnosis-algorithm-ef-increase
:decrease gnosis-algorithm-ef-decrease
- :frequency gnosis-algorithm-ef-frequency
+ :frequency gnosis-algorithm-ef-threshold
:c-successes c-success
:c-failures c-fails))))
@@ -1222,7 +1222,10 @@ changes."
;; Insert id & fields as read-only values
(gnosis-edit-read-only-values (format ":id %s" id) ":main" ":options" ":answer"
":tags" ":extra-notes" ":image" ":second-image"
- ":ef" ":ff" ":suspend"))
+ ":ef" ":ff" ":suspend")
+ (local-unset-key (kbd "C-c C-c"))
+ (local-set-key (kbd "C-c C-c") (lambda () (interactive) (gnosis-edit-save-exit t 'gnosis-dashboard "Notes"))))
+
(defun gnosis-edit-deck--export (id)
"Export deck with ID.