From 3990051bcfb0b98ca2e580f6f3a8d5fd5b9e671e Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sun, 3 Mar 2024 02:28:39 +0200 Subject: 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" --- gnosis.el | 7 +++++-- 1 file 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. -- cgit v1.2.3