Open To1ne opened 6 years ago
We can use these GNUS hooks then instead of sending the file to wakatime cli we can send these commands:
--entity GNUS
--type app
Well, that was basically my idea too. But how can I plug that in into wakatime.el?
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 tonil
when I'm inside an email buffer (e.g.gnus-summary-mode
orgnus-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.