From b77699c38f8ac099695ba0dbd948044689c55300 Mon Sep 17 00:00:00 2001 From: Dominik Schrempf Date: Mon, 21 Mar 2022 09:06:27 +0100 Subject: [PATCH] nit(org): lower case keywords in file templates See https://list.orgmode.org/87tuuw3n15.fsf@nicolasgoaziou.fr/. --- .../editor/file-templates/templates/org-mode/__ | 2 +- .../templates/org-mode/__contact.org | 14 +++++++------- .../templates/org-mode/__invoice.org | 16 ++++++++-------- .../templates/org-mode/__project.org | 8 ++++---- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/modules/editor/file-templates/templates/org-mode/__ b/modules/editor/file-templates/templates/org-mode/__ index 08836b2b2..f30ff41fa 100644 --- a/modules/editor/file-templates/templates/org-mode/__ +++ b/modules/editor/file-templates/templates/org-mode/__ @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: Org template # -- -#+TITLE: ${1:` +#+title: ${1:` (string-join (mapcar #'capitalize ;; Replace -,_... with space diff --git a/modules/editor/file-templates/templates/org-mode/__contact.org b/modules/editor/file-templates/templates/org-mode/__contact.org index b34624778..8925f8fe3 100644 --- a/modules/editor/file-templates/templates/org-mode/__contact.org +++ b/modules/editor/file-templates/templates/org-mode/__contact.org @@ -1,9 +1,9 @@ -#+TITLE:${1:Contact Name} -#+DATE: `(format-time-string "%Y-%m-%d")` -#+EMAIL: ${2:email@address.com} -#+ADDRESS: $3 -#+CITY: $4 -#+COUNTRY: $5 +#+title:${1:Contact Name} +#+date: `(format-time-string "%Y-%m-%d")` +#+email: ${2:email@address.com} +#+address: $3 +#+city: $4 +#+country: $5 ${0:...} @@ -14,4 +14,4 @@ ${0:...} * Invoices [/] ** PENDING YYMM-0000 *1,000 USD* * Notes -* Correspondence \ No newline at end of file +* Correspondence diff --git a/modules/editor/file-templates/templates/org-mode/__invoice.org b/modules/editor/file-templates/templates/org-mode/__invoice.org index f0241c66c..b785d40e6 100644 --- a/modules/editor/file-templates/templates/org-mode/__invoice.org +++ b/modules/editor/file-templates/templates/org-mode/__invoice.org @@ -1,17 +1,17 @@ -#+TITLE:${1:1234-5678} -#+DATE: `(format-time-string "%Y-%m-%d")` -#+ISSUED: ${2:`(format-time-string "%Y-%m-%d")`} -#+PAID: ${3:`(format-time-string "%Y-%m-%d")`} -#+CURRENCY: ${4:CAD|USD|DKK|GBP} -#+CONTACT: ${5:Contact ID} -#+PROJECT: ${6:Project ID} +#+title:${1:1234-5678} +#+date: `(format-time-string "%Y-%m-%d")` +#+issued: ${2:`(format-time-string "%Y-%m-%d")`} +#+paid: ${3:`(format-time-string "%Y-%m-%d")`} +#+currency: ${4:CAD|USD|DKK|GBP} +#+contact: ${5:Contact ID} +#+project: ${6:Project ID} | *Description* | *qty* | *rate* | *total* | |----------------------------------------------+-----+--------+-------| | $0 [1] | | | | |----------------------------------------------+-----+--------+-------| | | | | | -#+TBLFM: $4=$2+$3::@>$4=vsum(@2..@-1) +#+tblfm: $4=$2+$3::@>$4=vsum(@2..@-1) [1] ... diff --git a/modules/editor/file-templates/templates/org-mode/__project.org b/modules/editor/file-templates/templates/org-mode/__project.org index 45464104a..e521f4f67 100644 --- a/modules/editor/file-templates/templates/org-mode/__project.org +++ b/modules/editor/file-templates/templates/org-mode/__project.org @@ -1,9 +1,9 @@ -#+TITLE:${1:Project Name} -#+DATE: `(format-time-string "%Y-%m-%d")` -#+CONTACT: ${2:Contact name} +#+title:${1:Project Name} +#+date: `(format-time-string "%Y-%m-%d")` +#+contact: ${2:Contact name} $0 * Tasks [/] * Timeframe -* Notes \ No newline at end of file +* Notes