From af5261cf6b83246d3c80886e8e19928dede9a4b6 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 20 Feb 2018 02:45:57 -0500 Subject: [PATCH] feature/file-templates: fix doom readme template --- .../file-templates/templates/org-mode/__doom-readme | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/feature/file-templates/templates/org-mode/__doom-readme b/modules/feature/file-templates/templates/org-mode/__doom-readme index c19f44400..901c25faf 100644 --- a/modules/feature/file-templates/templates/org-mode/__doom-readme +++ b/modules/feature/file-templates/templates/org-mode/__doom-readme @@ -1,10 +1,11 @@ # -*- mode: snippet -*- # name: Doom module readme # -- -#+TITLE: ${1:`(progn (string-match "modules/\\([^/]+\\)/\\([^/]+\\)/.+" buffer-file-name) - (format ":%s %s" - (match-string 1 buffer-file-name) - (match-string 2 buffer-file-name)))`} +#+TITLE: ${1:`(if (string-match "modules/\\([^/]+\\)/\\([^/]+\\)/.+" buffer-file-name) + (format ":%s %s" + (match-string 1 buffer-file-name) + (match-string 2 buffer-file-name)) + "")`} ${2:A short summary about what this module does.}