From 28a791427381f5d87dbfee04803e2f61013feeb7 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 24 Aug 2020 23:34:50 +0200 Subject: [PATCH] Erstelle readme. --- .gitignore | 1 + README.org | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 README.org diff --git a/.gitignore b/.gitignore index c704bb5..c7dc2a7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.pdf *.tex auto/ +*.html diff --git a/README.org b/README.org new file mode 100644 index 0000000..0bd2825 --- /dev/null +++ b/README.org @@ -0,0 +1,27 @@ +#+TITLE: Rezepte +#+LANGUAGE: de +#+OPTIONS: toc:nil num:nil author:nil date:nil + +Ich sammle hier meine Rezepte in [[https://www.gnu.org/software/emacs/manual/html_mono/org.html#Summary][Org]]-dateien. Diese sind so konfiguriert, dass +die einzelnen rezepte in passabler qualität über LaTeX in PDF exportiert werden +können. + +* Dazugehöriger code + +[[https://github.com/joaotavora/yasnippet][yasnippet]]-snippet, um ein neues rezept einzutragen: +[[https://dotfiles.tastytea.de/.emacs.d/snippets/org-mode/rezept][~/.emacs.d/snippets/org-mode/rezept]]. + +Die darin verwendete funktion =my/string-to-var=: + +#+begin_src elisp +(defun my/string-to-var (string) + "Replace characters that usually are illegal in variable names in STRING with _." + (interactive) + (replace-regexp-in-string + "[[:space:]]" "_" + (replace-regexp-in-string "[^[:ascii:]]" "_" string))) +#+end_src + +# Local Variables: +# ispell-local-dictionary: "de_DE" +# End: