defcustom i guess
This commit is contained in:
parent
ca6b1468a6
commit
3d760257d3
2 changed files with 9 additions and 5 deletions
|
|
@ -65,7 +65,7 @@ My config looks like this:
|
||||||
(use-package um
|
(use-package um
|
||||||
:after (project embark)
|
:after (project embark)
|
||||||
|
|
||||||
:init (setq um-root-glob ".*/writing/journal")
|
:custom (um-root-glob ".*/writing/journal")
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(advice-add 'embark-target-file-at-point :around 'um-target-file-at-point-advice)
|
(advice-add 'embark-target-file-at-point :around 'um-target-file-at-point-advice)
|
||||||
|
|
|
||||||
12
elisp/um.el
12
elisp/um.el
|
|
@ -37,11 +37,15 @@
|
||||||
|
|
||||||
(require 'project)
|
(require 'project)
|
||||||
|
|
||||||
(defvar um-root-glob ".*/writing/journal"
|
(defcustom um-root-glob ".*/writing/journal"
|
||||||
"Primary glob for `um-root-path.' This allows various mountpoints.")
|
"Primary glob for `um-root-path.' This allows various mountpoints."
|
||||||
|
:type '(string)
|
||||||
|
)
|
||||||
|
|
||||||
(defvar um-date-format "%Y-%m-%d"
|
(defcustom um-date-format "%Y-%m-%d"
|
||||||
"Format passed to `format-time-string' when creating `um-journal-header'. Defaults to ISO8601.")
|
"Format passed to `format-time-string' when creating `um-journal-header'. Defaults to ISO8601."
|
||||||
|
:type '(string)
|
||||||
|
)
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; journal header
|
;; journal header
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue