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

don't add global hooks for live-preview #63

Conversation

cosmicexplorer
Copy link
Contributor

Take global hooks and make them buffer-local. markdown-live-preview-remove-on-kill applies to both the markdown buffers and the buffers used to preview the export, so it needs to be re-added in two places, where the export-viewing buffer is created, and when markdown-mode is turned on.

The test test-markdown-ext/live-preview-exports adequately covers whether these hooks run.

jrblevin pushed a commit that referenced this pull request Jan 5, 2016
Take global hooks and make them buffer-local.
markdown-live-preview-remove-on-kill applies to both the Markdown buffers and
the buffers used to preview the export, so it needs to be re-added in two
places, where the export-viewing buffer is created, and when markdown-mode is
turned on.

The test test-markdown-ext/live-preview-exports adequately covers whether
these hooks run.

[jrblevin@sdf.org: Squashed two commits and rebased.
Added GH-63 PR text to commit message for reference.]

Signed-off-by: Jason Blevins <jrblevin@sdf.org>
@jrblevin
Copy link
Owner

jrblevin commented Jan 5, 2016

Thanks. Applied as 002680d.

@jrblevin jrblevin closed this Jan 5, 2016
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

Successfully merging this pull request may close these issues.

2 participants