summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-04-02 16:49:32 +0300
committerThanos Apollo <[email protected]>2024-04-02 16:49:32 +0300
commit3a6d682c1804f42ffe44fcb50728b62b47ea6a70 (patch)
treecc1502ba63a3d3a36898aa76c23eaccdf14e3a75
parent9160a3d77301505e11793f863c0f96b4c846a407 (diff)
gnosis-edit-note: Add dashboard as arg
Specify dashboard to return to, by default notes.
-rw-r--r--gnosis.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnosis.el b/gnosis.el
index 6d97171..333bbaa 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1244,7 +1244,7 @@ NOTES: List of note ids"
(put-text-property (match-beginning 0) (match-end 0) 'read-only t)))
(goto-char (point-min)))
-(cl-defun gnosis-edit-note (id &optional (recursive-edit nil))
+(cl-defun gnosis-edit-note (id &optional (recursive-edit nil) (dashboard "Notes"))
"Edit the contents of a note with the given ID.
This function creates an Emacs Lisp buffer named *gnosis-edit* on the
@@ -1278,7 +1278,7 @@ changes."
(local-unset-key (kbd "C-c C-c"))
(local-set-key (kbd "C-c C-c") (lambda () (interactive) (if recursive-edit
(gnosis-edit-save-exit 'exit-recursive-edit)
- (gnosis-edit-save-exit 'gnosis-dashboard "Notes")))))
+ (gnosis-edit-save-exit 'gnosis-dashboard dashboard)))))
(defun gnosis-edit-deck--export (id)
"Export deck with ID.