Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for reading email #34

Open
To1ne opened this issue Feb 1, 2018 · 2 comments
Open

Support for reading email #34

To1ne opened this issue Feb 1, 2018 · 2 comments

Comments

@To1ne
Copy link

To1ne commented Feb 1, 2018

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.

@alanhamlett
Copy link
Member

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

--entity GNUS
--type app

@To1ne
Copy link
Author

To1ne commented Feb 5, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants