mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
core-auto-insert: update org file templates
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user