emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customization of IDs generation method


From: Ihor Radchenko
Subject: Re: Customization of IDs generation method
Date: Wed, 13 Oct 2021 22:09:24 +0800

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]