Skip to content

Instantly share code, notes, and snippets.

@cehter
cehter / tardis.svg
Last active December 28, 2016 18:17
Harry Plotter and the Tardis
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cehter
cehter / food-shopping-list.el
Last active December 30, 2015 22:09
To generate a shopping-list for the recipes I want to cook.
(defun flush-blank-lines ()
"Removes all blank lines from buffer or region"
(interactive)
(save-excursion
(let (min max)
(if (equal (region-active-p) nil)
(mark-whole-buffer))
(setq min (region-beginning) max (region-end))
(flush-lines "^ *$" min max t))))
@cehter
cehter / recipe-template.el
Last active November 6, 2017 14:22
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)