Add keymap for anki-editor-mode

Resolves louietan/anki-editor#79 and allows local binding of,
for example, the transient interface (orgtre/anki-editor#13).
This commit is contained in:
orgtre 2022-11-13 14:42:36 +01:00
parent 42e0121e84
commit bc7dd603e6

View file

@ -938,6 +938,7 @@ Return a list of cons of (FIELD-NAME . FIELD-CONTENT)."
(define-minor-mode anki-editor-mode
"A minor mode for making Anki cards with Org."
:lighter " anki-editor"
:keymap (make-sparse-keymap)
(if anki-editor-mode (anki-editor-setup-minor-mode)
(anki-editor-teardown-minor-mode)))