A major mode for creating Anki cards.
- Install anki-connect (anki addon 2055492159) and restart Anki.
- Install this package (either by using melpa, or by dropping the
.el
file into your path and require-ing it). - Set
anki-mode-markdown-command
to your preferred markdown parser command, or installpandoc
to use the default.pandoc
with github flavoured markdown is the default because it handles_
well. To disable markdown entirely setanki-mode-markdown-command
tocat
.
For pandoc version 2.0 or older you'll need to modify anki-mode-markdown-command
slightly:
(setq anki-mode-markdown-command "pandoc --from markdown_github --to html")
Call anki-mode-menu
to begin. Note that Anki must be running in order to use
anki-mode
.
- Press
$
to insert[$] [/$]
for latex maths. - Press
tab
to cycle through card fields. - Command
anki-mode-cloze-region
: wrap the selected region in a cloze deletion (with the number autodetected).
- Updating existing cards would be useful.
- Currently LaTeX can only be compiled within Anki itself (by previewing the card).
The @
character at the beginning of a line is used to mark the name of a
field. Everything else on the line is used as the field name (with leading and
trailing whitespace removed), everything from the next line until the start of
the next field is used as the contents of the field.
For example a standard "Basic" card type would be written as:
@Front
What is a foo?
@Back
A particularly vicious variety of dandelion.
You can use markdown inside fields.
If you prefer org-mode to markdown, you might prefer to use anki-editor.
org-drill and pamparam are implementations of an entire spaced repetition system within Emacs. You might prefer one of these if you want to do the memorisation part of spaced repetition within Emacs, I prefer to use the Anki mobile app.
- A magit-status-like menu screen
- Cycle through card fields
- Various minor quality improvements
- Handling of non-default card types
- Add an error message when card already exists
- Depend on pandoc 2.0 by default
- Basic card creation
- Markdown rendering