[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Time of last command invoked
From: |
Stefan Monnier |
Subject: |
Re: Time of last command invoked |
Date: |
Sun, 28 Feb 2021 10:25:23 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> There are also those advise functions. I have not express myself
> well first time as first I was thinking maybe each command like in
> lossage would have somewhere its timestamp which is maybe hidden and
> I could just access it and find out my times of work. It would be
> possible before exit from Emacs to make a report of full work and
> statistics. It is for self observation.
>
> Working in the area with frequent power outages is difficult. Then
> some information about my last work helps me find out other pieces
> of information and analyze what I was doing at what time.
BTW, it's not hard to do what you want:
Use a `post-command-hook` or `pre-command-hook` where you record the
current time the `this-command` and/or the `(this-command-keys)`.
Stefan