diff options
author | Thanos Apollo <[email protected]> | 2024-04-02 16:49:32 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-04-02 16:49:32 +0300 |
commit | 3a6d682c1804f42ffe44fcb50728b62b47ea6a70 (patch) | |
tree | cc1502ba63a3d3a36898aa76c23eaccdf14e3a75 /gnosis.el | |
parent | 9160a3d77301505e11793f863c0f96b4c846a407 (diff) |
gnosis-edit-note: Add dashboard as arg
Specify dashboard to return to, by default notes.
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. |