help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Adding timestamp entry to diary with insert-day command?


From: Michael Heerdegen
Subject: Re: Adding timestamp entry to diary with insert-day command?
Date: Wed, 09 Oct 2024 00:37:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Marc Coquand <marc@mccd.space> writes:

> I have began using diary, and quite like the simple format.
>
> I'd like to change the default insert-day entry format, and add a
> timestamp as well since all my entries are time-stamped.

How would that look like in your diary file in the end?

> Is there a way to do so?

I think you would define your own function, a variant of
`diary-insert-entry', and use that instead of `diary-insert-entry'.  I
guess you would make the first argument of `diary-make-entry' to include
your time stamp.

> Bonus question: Is it also possible to use org-capture to insert diary
> entries with a timestamp included?

Into the _diary_?  org-capture relies on org-mode (it uses a narrowed
version of the org buffer of the target org file for input).  Getting
that work would be that kind of hack where it is very likely that you'll
regret it later.  Unless I misunderstood what you have in mind,
honestly, I would not try to marry those concepts.


Michael.



reply via email to

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