core-auto-insert: update org file templates

This commit is contained in:
Henrik Lissner 2015-12-10 22:02:56 -05:00
parent eb3130d4aa
commit e36f61047c

View file

@ -13,6 +13,12 @@
(nth 0 rule) (nth 0 rule)
(vector `(lambda () (narf/auto-insert-snippet ,(nth 1 rule) ',(nth 2 rule) ,(nth 3 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 (mapc 'auto-insert-template
`(;; General `(;; General
("/\\.gitignore$" "__" gitignore-mode) ("/\\.gitignore$" "__" gitignore-mode)
@ -54,11 +60,6 @@
;; Markdown ;; Markdown
("\\.md$" "__" markdown-mode) ("\\.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 ;; PHP
("\\.class\\.php$" "__.class.php" php-mode) ("\\.class\\.php$" "__.class.php" php-mode)
("\\.php$" "__" php-mode) ("\\.php$" "__" php-mode)