dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 1bf41622d35a75f8b52420bce3be391942973254
parent 7cc41f93f74c38ddd53ed08194455697fa0c1c66
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Tue,  3 Aug 2021 10:59:30 +0200

emacs: keybindings for anki-editor

Diffstat:
Memacs/config.org | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/emacs/config.org b/emacs/config.org @@ -270,6 +270,22 @@ Install flycheck, and enable it in certain major modes: :hook (sh-mode . flycheck-mode)) #+end_src +** anki-editor +Some extra keybindings that are not set up by default. +anki-editor doesn't provide a keymap so I have to set one up here: + +#+begin_src emacs-lisp + (use-package anki-editor + :init + (defvar anki-editor-mode-map (make-sparse-keymap)) + (add-to-list 'minor-mode-map-alist (cons 'anki-editor-mode + anki-editor-mode-map)) + :bind (:map anki-editor-mode-map + ("C-c i" . anki-editor-insert-note) + ("C-c p" . anki-editor-push-notes) + ("C-c c" . anki-editor-cloze-dwim))) +#+end_src + * Interface ** Messages Hide some messages I don't need.