Org: new file snippet should ignore date in file

This commit is contained in:
TEC 2021-04-24 15:18:24 +08:00
parent 2020ba6a11
commit 88f736e010
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# -*- mode: snippet -*-
# name: Org template
# --
#+title: ${1:`(s-titleized-words (file-name-base (or buffer-file-name "new buffer")))`}
#+title: ${1:`(s-titleized-words (replace-regexp-in-string "^[0-9]\\{4\\}-[0-9][0-9]-[0-9][0-9]-" "" (file-name-base (or buffer-file-name "new buffer"))))`}
#+author: ${2:`(user-full-name)`}
#+date: ${3:`(format-time-string "%Y-%m-%d")`}