Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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)))) | |
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) |