From a0559a27090916a4b97c1639de5814125c8c22e8 Mon Sep 17 00:00:00 2001 From: wrycode Date: Mon, 24 Feb 2020 01:55:07 -0500 Subject: [PATCH] (docs): add note about removing title timestamps in configuration.md (#175) --- doc/configuration.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/configuration.md b/doc/configuration.md index ee59186..2867da1 100644 --- a/doc/configuration.md +++ b/doc/configuration.md @@ -111,6 +111,19 @@ If you wish to be prompted to change the file name on creation, set It is then the user's responsibility to ensure that the file names are unique. +If you prefer just the title slug as the filename (with no timestamp), +you can use the following template: + +```emacs-lisp +(defun my-org-roam-no-timestamp-in-title (title) + (let ((slug (org-roam--title-to-slug title))) + (format "%s" slug))) + +(setq org-roam-templates + (list (list "default" (list :file #'my-org-roam-no-timestamp-in-title +:content "#+TITLE: ${title}")))) +```` + ### Autopopulating Titles The default workflow uses the title of the Org file in several