From 7cb515ffb7fdcae8edc1f9bd676fe9146858de92 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Sat, 25 Sep 2021 18:43:31 -0700 Subject: Refined default snippet --- resources/snippets/org-mode/default | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/resources/snippets/org-mode/default b/resources/snippets/org-mode/default index f667c69..6d13b23 100644 --- a/resources/snippets/org-mode/default +++ b/resources/snippets/org-mode/default @@ -4,13 +4,14 @@ # -- # -*- mode: org; -*- -#+TITLE: ${1:Default Title} -#+AUTHOR: ${2:`(if (eq user-full-name "") "Default Author" user-full-name)`} -#+DATE: ${3:`(with-temp-buffer (org-insert-time-stamp (current-time)))`} +#+TITLE: ${Default Title} +#+AUTHOR: ${`(if (eq user-full-name "") "Default Author" user-full-name)`} +#+DATE: ${`(with-temp-buffer (org-insert-time-stamp (current-time)))`} -#+SETUPFILE: ~/.emacs.d/templates/documents/${4:`(if (string= system-type "gnu/linux") "gnu-" "ms-:")`}default.setup -#+INCLUDE: ~/.emacs.d/templates/documents/title-default.org +#+SETUPFILE: ${`sd-path-templates`}documents/${`(if (string= system-type "gnu/linux") "gnu-" "ms-")`}default.setup +#+INCLUDE: ${`sd-path-templates`}documents/${title-default}.org -$0 +* ${Default first heading} +${Default body} \ No newline at end of file -- cgit v1.2.3