org-drill templates

This commit is contained in:
Levi Neely 2024-09-24 17:39:23 +02:00
parent 52e9afa285
commit c36bdc565a
2 changed files with 30 additions and 0 deletions

1
.gitignore vendored
View File

@ -15,3 +15,4 @@ emacs/flycheck_init.el
/emacs/detached/
/emacs/elisa/
/emacs/perspectives
/emacs/persist/

View File

@ -9,6 +9,35 @@
(require 'module-pkg)
(pkg/require 'org-drill)
(setq org-drill-use-visible-cloze-face-p t)
(setq org-drill-hide-item-headings-p t)
(add-to-list
'org-capture-templates
'("v" "Deutsch Verb" entry
(file+headline "~/doc/deutsch.org" "Vocabulary")
"* %^{Word type|Noun|Verb|Adjective|Adverb|Preposition|Conjunction|Interjection} :drill:\n:PROPERTIES:\n:DRILL_CARD_TYPE: twosided\n:END:\n** Deutsch\n%^{German word}\n** English\n%^{English translation}"))
(provide 'module-org-drill)
(add-to-list
'org-capture-templates
'("p" "Deutsch Phrase" entry
(file+headline "~/doc/deutsch.org" "Phrases")
"* %^{Phrase Type|Phrase|Greeting|Idiom|Saying} :drill:\n:PROPERTIES:\n:DRILL_CARD_TYPE: twosided\n:END:\n** Deutsch\n%^{German phrase}\n** English\n%^{English translation}"))
(add-to-list
'org-capture-templates
'("d" "Noun Declension" entry
(file+headline "~/doc/deutsch.org" "Noun Declension")
"* %^{German word} :drill:\n:PROPERTIES:\n:DRILL_CARD_TYPE: show2cloze\n:END:\n|---\n|Kasus|Singular|Plural|\n|---\n|Nominativ|[%^{nomsing}]|[%^{nompl}]|\n|Genitiv|[%^{gensing}]|[%^{genpl}]|\n|Dativ|[%^{datsing}]|[%^{datpl}]|\n|Akkusativ|[%^{akksing}]|[%^{akkpl}]|\n|---"))
(add-to-list
'org-capture-templates
'("c" "Verb Conjugation" entry
(file+headline "~/doc/deutsch.org" "Verb Conjugation")
"* %^{German word} :drill:\n:PROPERTIES:\n:DRILL_CARD_TYPE: show2cloze\n:END:\n|---\n|ich|[%^{ich}]|wir|[%^{wir}]|\n|du|[%^{du}]|ihr|[%^{ihr}]\n|er/sie/es|[%^{er/sie/es}]|sie/Sie|[%^{sie/Sie}]|\n|--\n\nPerfekt: [%^{verb|haben|sein}] + [%^{perfekt}]."))
(provide 'module-org-drill)
;;; module-org.el ends here.