Open algking opened 10 years ago
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.
(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).
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?
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.
I have install skewer-mode and dependencies,in js2-mode it work well.But in html-mode ,C-M-x just nothing happened .