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

Hooks on try and submit #118

Open
marco-zan opened this issue Jun 20, 2023 · 2 comments
Open

Hooks on try and submit #118

marco-zan opened this issue Jun 20, 2023 · 2 comments

Comments

@marco-zan
Copy link

This is a request for a feature and a proposal to write it myself.

Every time a code is run or submitted to LetCode, I felt it would be helpful to call a hook.
Except for the fact that I cannot locate the line where, for instance, leetcode-solution-mode-hook is called, I am unable to locate any evidence in the code that led me to believe that those hooks already exist.

I would need that to integrate the wakatime-mode melpa package, to keep track on the time spent with every problem.

This feature request is unrelated to the second integration with wakatime, and I would actually work on it later

@imakira
Copy link

imakira commented Jan 6, 2024

I think leetcode-solution-mode-hook is created by define-minor-mode and will be called when leetcode-solution-mode is enabled.

@nverno
Copy link
Contributor

nverno commented Jul 19, 2024

I implemented a leetcode-before-submit-hook along with some other hooks for user customizations on my branch (overview of changes here nverno@6a878fd).
However, I made so many changes I haven't decided which to submit as pull requests quite yet.

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

3 participants