emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: Ypo <ypuntot@gmail.com>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: Customization of IDs generation method
Date: Wed, 13 Oct 2021 22:09:24 +0800	[thread overview]
Message-ID: <87mtnduicr.fsf@localhost> (raw)
In-Reply-To: <cc174cf7-18d1-c995-473b-09e79be5d1ad@gmail.com>

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.


      reply	other threads:[~2021-10-13 14:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-11  7:45 Customization of IDs generation method Ypo
2021-10-13 14:09 ` Ihor Radchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mtnduicr.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ypuntot@gmail.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).