wakatime-mode icon indicating copy to clipboard operation
wakatime-mode copied to clipboard

Support for reading email

Open To1ne opened this issue 6 years ago • 2 comments

I read my email in Emacs using Gnus, and I was wondering if there is a way to file mail activity under a "Email" project?

AFAICS, (buffer-file-name (current-buffer)) is passed to the cli tool, and that will probably determine the project based on that. But that s-exp evals to nil when I'm inside an email buffer (e.g. gnus-summary-mode or gnus-article-mode).

Maybe we can fix this by adding a buffer local variable wakatime-current-project (or something like that) that I can set in my mode hooks and will be passed to the cli tool.

To1ne avatar Feb 01 '18 08:02 To1ne

We can use these GNUS hooks then instead of sending the file to wakatime cli we can send these commands:

--entity GNUS
--type app

alanhamlett avatar Feb 01 '18 16:02 alanhamlett

Well, that was basically my idea too. But how can I plug that in into wakatime.el?

To1ne avatar Feb 05 '18 21:02 To1ne