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

skewer-mode don #50

Open
algking opened this issue Sep 1, 2014 · 5 comments
Open

skewer-mode don #50

algking opened this issue Sep 1, 2014 · 5 comments

Comments

@algking
Copy link

algking commented Sep 1, 2014

No description provided.

@algking
Copy link
Author

algking commented Sep 1, 2014

I have install skewer-mode and dependencies,in js2-mode it work well.But in html-mode ,C-M-x just nothing happened .

@skeeto
Copy link
Owner

skeeto commented Sep 1, 2014

Did you run skewer-setup first? skewer-html-mode won't turn on automatically in html-mode buffers unless you add the hook manually or run the setup function. This is following a general philosophy that ELPA packages shouldn't be automatically active just because they're installed.

@algking
Copy link
Author

algking commented Sep 3, 2014

(add-hook 'js-mode-hook 'js2-mode)
here is my config
(add-hook 'js2-mode-hook 'ac-js2-mode)
(add-hook 'js2-mode-hook 'skewer-mode)
(add-hook 'css-mode-hook 'skewer-css-mode)
(add-hook 'html-mode-hook 'skewer-html-mode)

I didn't run the skewer-setup , I add the hook myself . Then I run the run-skewer ,in the skewer.js you can
see it works ok as follow,but not the example.html(when C-M-x).

image

image
image

@skeeto
Copy link
Owner

skeeto commented Sep 3, 2014

Hmm, ok, so skewer-html-mode is definitely on. Does a region flash briefly when you use C-M-x? What happens if you try running the command directly with M-x skewer-html-eval-tag? Perhaps the binding isn't working.

And for the record, what version of Emacs are you using?

@algking
Copy link
Author

algking commented Sep 4, 2014

Emacs version 24.3 Mac ,the region flashed each time i use C-M-x.
I somehow get it work last day,it seems the skewer-mode will send the region to the example.html and eval.But the skewer-html-mode works a little unstable,

I got this circumstance many times: I eval some tag use C-M-x,and it work ,then I eval some other tags,but shows nothing,then I refresh the brower ,the other tags comes out.

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