Skip to content

Instantly share code, notes, and snippets.

@munen
Created May 1, 2016 11:04
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save munen/8fdceaf9a217c7f41c3e6355ea683767 to your computer and use it in GitHub Desktop.
Save munen/8fdceaf9a217c7f41c3e6355ea683767 to your computer and use it in GitHub Desktop.
Create custom capture templates for emacs
(setq org-capture-templates
'(("t" "Todo" entry (file+headline (concat org-directory "inbox.org") "Tasks")
"* TODO %?\n %U\n %i\n %a")
("s" "Code Snippet" entry
(file (concat org-directory "snippets.org"))
;; Prompt for tag and language
"* %?\t%^g\n#+BEGIN_SRC %^{language}\n\n#+END_SRC")
("m" "Media" entry
(file+datetree (concat org-directory "media.org"))
"* %?\nURL: \nEntered on %U\n")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment