diff options
author | Thanos Apollo <[email protected]> | 2024-03-03 02:28:39 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-03-03 02:28:39 +0200 |
commit | 3990051bcfb0b98ca2e580f6f3a8d5fd5b9e671e (patch) | |
tree | e237a2a118ab1cfc78bcf620fe25ed2c2b266e45 /gnosis.el | |
parent | 619970bccb8e097d8de4cf1e023fdf9f377dadf6 (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.el | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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. |