summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-14 13:11:00 +0200
committerThanos Apollo <[email protected]>2024-01-14 13:11:00 +0200
commit4eb6c4cee963512777869aed0bd1e954b9898f1b (patch)
tree15561af2c87b00f3df9e6fe92adf7e5f4f35f6ae /gnosis.el
parente968a3ec3a264ad928720d9f0c2c856604dcda79 (diff)
[fix] Fix gnosis-edit-mode-map
Having gnosis-edit-mode-map defined after gnosis-edit-mode does not work, it needs to be defined before
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/gnosis.el b/gnosis.el
index 2ce038e..f58e851 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1132,6 +1132,9 @@ changes."
(kill-buffer)
(exit-recursive-edit))
+(defvar-keymap gnosis-edit-mode-map
+ :doc "gnosis-edit keymap"
+ "C-c C-c" #'gnosis-edit-save-exit)
(define-derived-mode gnosis-edit-mode emacs-lisp-mode "Gnosis EDIT"
"Gnosis Edit Mode."
@@ -1139,10 +1142,6 @@ changes."
:lighter " gnosis-edit-mode"
:keymap gnosis-edit-mode-map)
-(defvar-keymap gnosis-edit-mode-map
- :doc "gnosis-edit keymap"
- "C-c C-c" #'gnosis-edit-save-exit)
-
(cl-defun gnosis-edit-update-note (&key id main options answer tags (extra-notes nil) (image nil) (second-image nil))
"Update note with id value of ID.