summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <meyerkya@gmail.com>2013-07-08 13:13:59 -0400
committerKyle Meyer <meyerkya@gmail.com>2013-07-08 13:13:59 -0400
commita6b102f784f05c4114fb2b5b808c776141f68ee8 (patch)
tree3081842d6e1784c1714019174cbc7775d3cdb198
parent00a5cda23b6a8b39849c0fde5e703d66301652e3 (diff)
downloademacs.d-a6b102f784f05c4114fb2b5b808c776141f68ee8.tar.gz
add some common org templates
-rw-r--r--init/km-org.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/init/km-org.el b/init/km-org.el
index c8bb3e7..e9b8f5d 100644
--- a/init/km-org.el
+++ b/init/km-org.el
@@ -113,6 +113,17 @@
(global-set-key (kbd "C-c o b") 'org-iswitchb)
(global-set-key (kbd "C-c o m") 'km/open-main-orgfile)
+(defvar km/additional-org-templates
+ '(("t" "#+TITLE: " "")
+ ("d" "#+DATE: " "")
+ ("o" "#+OPTIONS: " "")
+ ("p" "#+PROPERTY: " "")))
+
+(mapcar
+ (lambda (template)
+ (add-to-list 'org-structure-template-alist template))
+ km/additional-org-templates)
+
;; don't let `org-cycle-agenda-files' binding override custom
;; `backward-kill-word' binding (`org-cycle-agenda-files' is still bound
;; to C-,)