Last active
November 6, 2017 14:22
-
-
Save cehter/7892628 to your computer and use it in GitHub Desktop.
My Recipe-Template to add a recipe fast to my food.org.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun recipe-template () | |
(interactive) | |
(goto-line 0) | |
(search-forward "* Recipe") | |
(org-meta-return) | |
(org-metaright) | |
(setq recipe-name (read-string "Titel: ")) | |
(insert recipe-name) | |
(org-set-tags) | |
(org-meta-return) | |
(org-metaright) | |
(insert "Zutaten") | |
(org-meta-return) | |
(insert "Zubereitung") | |
(search-backward recipe-name) | |
(org-set-property "Bewertung" "") | |
(setq source (read-string "Quelle: ")) | |
(org-set-property "Quellen" source) | |
(setq amount (read-string "Menge: ")) | |
(org-set-property "Menge" amount) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment