From 3d760257d33b9bfdde4f697197edb5bc0a63461f Mon Sep 17 00:00:00 2001 From: bth Date: Tue, 16 Dec 2025 14:31:40 -0800 Subject: [PATCH] defcustom i guess --- README.md | 2 +- elisp/um.el | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1424e72..948417f 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ My config looks like this: (use-package um :after (project embark) - :init (setq um-root-glob ".*/writing/journal") + :custom (um-root-glob ".*/writing/journal") :config (advice-add 'embark-target-file-at-point :around 'um-target-file-at-point-advice) diff --git a/elisp/um.el b/elisp/um.el index d843277..2316bdd 100644 --- a/elisp/um.el +++ b/elisp/um.el @@ -37,11 +37,15 @@ (require 'project) -(defvar um-root-glob ".*/writing/journal" - "Primary glob for `um-root-path.' This allows various mountpoints.") +(defcustom um-root-glob ".*/writing/journal" + "Primary glob for `um-root-path.' This allows various mountpoints." + :type '(string) + ) -(defvar um-date-format "%Y-%m-%d" - "Format passed to `format-time-string' when creating `um-journal-header'. Defaults to ISO8601.") +(defcustom um-date-format "%Y-%m-%d" + "Format passed to `format-time-string' when creating `um-journal-header'. Defaults to ISO8601." + :type '(string) + ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; journal header