From d6795836bc8c755275cf59f5ec394ed0ed91191f Mon Sep 17 00:00:00 2001 From: Blendoit Date: Thu, 5 Nov 2020 00:14:02 -0800 Subject: New snippets. --- snippets/org-mode/default | 16 ++++++++++++++++ snippets/org-mode/org-doc | 16 ---------------- snippets/org-mode/table | 11 +++++++++++ 3 files changed, 27 insertions(+), 16 deletions(-) create mode 100644 snippets/org-mode/default delete mode 100644 snippets/org-mode/org-doc create mode 100644 snippets/org-mode/table (limited to 'snippets/org-mode') diff --git a/snippets/org-mode/default b/snippets/org-mode/default new file mode 100644 index 0000000..ce19410 --- /dev/null +++ b/snippets/org-mode/default @@ -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/org-doc b/snippets/org-mode/org-doc deleted file mode 100644 index ce19410..0000000 --- a/snippets/org-mode/org-doc +++ /dev/null @@ -1,16 +0,0 @@ -# -*- 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/table b/snippets/org-mode/table new file mode 100644 index 0000000..9e40d92 --- /dev/null +++ b/snippets/org-mode/table @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: table +# key: $tab +# -- +#+NAME: ${1:table-title} +#+CAPTION[${2:Short caption}]: $2. ${3:Optional additional details} +#+ATTR_LATEX: :booktabs t +| *${4:Title of Entries}* | *${5:Column 2}* | *${6:Column 2}* | +|-------------------------+-----------------+-----------------| +| *${7:Entry 1}* | $0 | | +| | | | -- cgit v1.2.3