skeeto / skewer-mode

Live web development in Emacs
The Unlicense
1.1k stars 57 forks source link

skewer-mode don #50

Open algking opened 10 years ago

algking commented 10 years ago

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

skeeto commented 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.

algking commented 10 years ago

(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 commented 10 years ago

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 commented 10 years ago

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.