Emacs Spaced Repetition System with Anki
Source: Power up Anki with Emacs, Org mode, anki-editor and more - how to use Emacs package anki-editor to create and manage cards and export them to Anki for use
Power up Anki with Emacs, Org mode, anki-editor and more
Section titled “Power up Anki with Emacs, Org mode, anki-editor and more”Org-mode as Editor to Anki
Section titled “Org-mode as Editor to Anki”- Notes are org entries with property
ANKI_NOTE_TYPE - Headings under the entry is a
fieldin Anki - Tags can be synchronized with Anki
- The Emacs package anki-editor using the property value
ANKI_NOTE_IDto synchronize org entries and the corresponding notes in Anki - To style cards correctly in Anki exported from org mode, in Anki, use css like GitHub - gongzhitaao/orgcss: Simple and clean CSS for Org-exported HTML and paste the css into the Anki app to style all cards
Set up Anki for Emacs
Section titled “Set up Anki for Emacs”Source: GitHub - anki-editor/anki-editor: Emacs minor mode for making Anki cards with Org Mode forked from original package at GitHub - louietan/anki-editor
-
Use instructions on anki-editor README, for Emacs configuration use my dotfiles to get set up in Emacs
-
Open Anki
- Install anki-connect per
instructions. High level
steps as follows:
- Open Anki
- Go to Tools > Add Ons > Get Add-ons
- Input 2055492159 in the box labeled
Codeand pressOK - Restart Anki
- Install anki-connect per
instructions. High level
steps as follows:
-
anki-connect should now be running after the restart
-
Keep Anki running for Emacs to talk to anki-connect
-
Use
anki-editor-insert-noteto create a new card. Can use basic card type or my “3. All Purpose Card” note type- For my examples, see Anki Master Deck for Learning - Anki Master Deck for Learning
-
After making changes to existing notes or creating new ones, push changes to anki with
anki-editor-push-notes -
For better formatting inside Anki, do:
- Select a deck –> Browse –> Cards (top right) –> Styling
- Paste in contents of https://gongzhitaao.org/orgcss/org.css