From 373972407d8200d94731e5bc1f515d3b18c81648 Mon Sep 17 00:00:00 2001 From: Blendoit Date: Tue, 3 Nov 2020 18:54:35 -0800 Subject: yasnippets --- snippets/org-mode/org-basic | 8 -------- snippets/org-mode/org-doc | 16 ++++++++++++++++ snippets/org-mode/src | 4 ++-- 3 files changed, 18 insertions(+), 10 deletions(-) delete mode 100644 snippets/org-mode/org-basic create mode 100644 snippets/org-mode/org-doc (limited to 'snippets') diff --git a/snippets/org-mode/org-basic b/snippets/org-mode/org-basic deleted file mode 100644 index 81a3bdc..0000000 --- a/snippets/org-mode/org-basic +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: Org mode basic template -# key: /skel -# -- - -#+TITLE: ${1:Default Title} -#+AUTHOR: ${2:Marius Peter} -#+DATE: `(org-time-stamp nil)` diff --git a/snippets/org-mode/org-doc b/snippets/org-mode/org-doc new file mode 100644 index 0000000..ce19410 --- /dev/null +++ b/snippets/org-mode/org-doc @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# name: default +# key: $default +# -- +# -*- 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)))`} + +#+SETUPFILE: ~/.emacs.d/templates/documents/default.org +#+INCLUDE: ~/.emacs.d/templates/documents/default.org_title + +$0 + + diff --git a/snippets/org-mode/src b/snippets/org-mode/src index e6da583..cdada53 100644 --- a/snippets/org-mode/src +++ b/snippets/org-mode/src @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: src -# key: src +# key: $src # -- -#+BEGIN_SRC ${1:emacs-lisp} +#+BEGIN_SRC ${1:emacs-lisp} ${2::tangle yes} $0 #+END_SRC -- cgit v1.2.3