-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add indium-update-script-source-hook #46
Conversation
Looks good, thanks! Could you also add documentation for it? |
To the texi file? |
No, it should be placed in |
sphinx-doc/code-evaluation.rst
Outdated
(indium-eval (format "window.dispatchEvent(new CustomEvent('patch', {detail: {url: '%s'}}))" | ||
url)))) | ||
|
||
Then you can use it in your app for developmenm purposes :: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's a typo here :)
sphinx-doc/code-evaluation.rst
Outdated
@@ -68,3 +68,17 @@ To enable live updates, make sure Indium is set up to use local files (see | |||
current buffer. | |||
- ``(setq indium-update-script-on-save t)``: Automatically update the runtime | |||
script JavaScript source after each buffer save. | |||
|
|||
You can setup a hook for the script update. For example :: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about rephrasing this sentence like this: You can setup a hook to be run after each script update. For example ::
Squash your commits together and we're good to go! |
Usage:
and