init-anki.el 637 B

12345678910111213141516171819
  1. (use-package anki
  2. :if (executable-find "sqlite3")
  3. :bind
  4. ("C-c a a" . anki)
  5. :hook
  6. ((anki-mode anki-card-mode) . shrface-mode)
  7. :load-path "/home/qrthi/documents/projects/elisp/anki"
  8. :init
  9. (autoload 'anki "anki")
  10. (autoload 'anki-browser "anki")
  11. (autoload 'anki-list-decks "anki")
  12. :custom
  13. ;; (anki-shr-rendering-functions (append anki-shr-rendering-functions shr-external-rendering-functions))
  14. (sql-sqlite-program (executable-find "sqlite3"))
  15. (anki-collection-dir "/home/qrthi/.local/share/Anki2/User 1")
  16. ;; (require 'shrface)
  17. (anki-audio-player (or (executable-find "aplay") (executable-find "afplay")))
  18. )