Skip to content

Instantly share code, notes, and snippets.

@cehter
Last active November 6, 2017 14:22
Show Gist options
  • Save cehter/7892628 to your computer and use it in GitHub Desktop.
Save cehter/7892628 to your computer and use it in GitHub Desktop.
My Recipe-Template to add a recipe fast to my food.org.
(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