* Customization of IDs generation method
@ 2021-10-11 7:45 Ypo
2021-10-13 14:09 ` Ihor Radchenko
0 siblings, 1 reply; 2+ messages in thread
From: Ypo @ 2021-10-11 7:45 UTC (permalink / raw)
To: Org-mode
[-- Attachment #1: Type: text/plain, Size: 561 bytes --]
How would the "New option org-id-ts-format" work?
I added to my init.el these lines with no result (sorry if I am
commiting heresy):
(defcustom org-id-ts-format "%Y-%m-%d-T%H-%M-%S.%6N"
"Timestamp format for IDs generated using `ts' `org-id-method'.
The format should be suitable to pass as an argument to
`format-time-string'.
Defaults to ISO8601 timestamps without separators and without
timezone, local time and precision down to 1e-6 seconds."
:type 'string
:package-version '(Org . "9.5"))
The format still is ISO8601 with no separators.
[-- Attachment #2: Type: text/html, Size: 1012 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Customization of IDs generation method
2021-10-11 7:45 Customization of IDs generation method Ypo
@ 2021-10-13 14:09 ` Ihor Radchenko
0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2021-10-13 14:09 UTC (permalink / raw)
To: Ypo; +Cc: Org-mode
Ypo <ypuntot@gmail.com> writes:
> How would the "New option org-id-ts-format" work?
>
> I added to my init.el these lines with no result (sorry if I am
> commiting heresy):
>
> (defcustom org-id-ts-format "%Y-%m-%d-T%H-%M-%S.%6N"
> "Timestamp format for IDs generated using `ts' `org-id-method'.
> The format should be suitable to pass as an argument to
> `format-time-string'.
> Defaults to ISO8601 timestamps without separators and without
> timezone, local time and precision down to 1e-6 seconds."
> :type 'string
> :package-version '(Org . "9.5"))
Hmm. Did you literally add this "defcustom" code?
You should either use Emacs customize interface
(see 49.1 Easy Customization Interface section of Emacs manual)
or use setq (see 49.4.2 Init File Examples) like the following:
(setq org-id-method 'ts)
(setq org-id-ts-format "%Y-%m-%d-T%H-%M-%S.%6N")
Hope it helps.
Best,
Ihor
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-13 14:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-11 7:45 Customization of IDs generation method Ypo
2021-10-13 14:09 ` Ihor Radchenko
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.