From e36f61047c60c5f9b4b4a91bd5ff673d4c379454 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 10 Dec 2015 22:02:56 -0500 Subject: [PATCH] core-auto-insert: update org file templates --- core/core-auto-insert.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/core/core-auto-insert.el b/core/core-auto-insert.el index 389d29336..68f3c09ef 100644 --- a/core/core-auto-insert.el +++ b/core/core-auto-insert.el @@ -13,6 +13,12 @@ (nth 0 rule) (vector `(lambda () (narf/auto-insert-snippet ,(nth 1 rule) ',(nth 2 rule) ,(nth 3 rule)))))) + (after! org-mode + (mapc 'auto-insert-template' + '((,(format "%s.+\\.org$" (f-relative org-directory-contacts org-directory)) "__contact.org" org-mode) + (,(format "%s.+\\.org$" (f-relative org-directory-projects org-directory)) "__projects.org" org-mode) + (,(format "%s.+\\.org$" (f-relative org-directory-invoices org-directory)) "__invoices.org" org-mode)))) + (mapc 'auto-insert-template `(;; General ("/\\.gitignore$" "__" gitignore-mode) @@ -54,11 +60,6 @@ ;; Markdown ("\\.md$" "__" markdown-mode) - ;; Org - (,(format "%s.+\\.org$" (f-relative org-directory-contacts org-directory)) "__contact.org" org-mode) - (,(format "%s.+\\.org$" (f-relative org-directory-projects org-directory)) "__projects.org" org-mode) - (,(format "%s.+\\.org$" (f-relative org-directory-invoices org-directory)) "__invoices.org" org-mode) - ;; PHP ("\\.class\\.php$" "__.class.php" php-mode) ("\\.php$" "__" php-mode)