commit f7758ee8ef14bd37b78478066438f60ba365eb6f parent 5ecf571037375990b00bf1e6a7c05cd1a165bd91 Author: Vincent Demeester <vincent@sbr.pm> Date: Tue, 30 Jun 2020 12:58:11 +0200 tools/emacs: add org-www-post skeleton Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | tools/emacs/config/config-org.el | | | 14 | +++++++++++++- |
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/tools/emacs/config/config-org.el b/tools/emacs/config/config-org.el @@ -35,7 +35,9 @@ ("C-c o a" . org-agenda) ("<f12>" . org-agenda) ("C-c o c" . org-capture) - ("C-c o i p" . vde/org-project)) + ;; Skeletons + ("C-c o i p" . vde/org-project) + ("C-c o i n" . vde/org-www-post)) :config (define-skeleton vde/org-project "new org-mode project" @@ -46,6 +48,16 @@ > "#+BEGIN: clocktable :scope file :maxlevel 2 :emphasize nil :link t" \n > "#+END:" \n > _ \n) + (define-skeleton vde/org-www-post + "new www post" + nil + > "#+title: " (skeleton-read "Title: ") \n + > "#+date: " (format-time-string "<%Y-%M-%d %a>") \n + > "#+filetags: " (skeleton-read "Tags: ") \n + > "#+setupfile: ../templates/post.org" \n + > _ \n + > "* Introduction" + ) (setq org-agenda-files `(,org-projects-dir "~/src/home" "~/src/www/")