People who code: we want your input. Take the Survey
19

TLDR; You have to start the http server (simple-http) and load your HTML files through it. For example, let's say you have a HTML file named hello.html and a JS script file named script.js in /home/user/Documents/javascript folder. hello.html: <!doctype html> <html> <head> <!-- Include skewer.js as a script --> <script ...


10

Instead of running the demo, just perform these minimal steps to ensure that everything is working correctly. Open a new buffer with the name myskewer.js Enable JS2-mode (a dependency of skewer) Enable skewer-mode M-xrun-skewer (a browser opens, go back to myskewer.js) Type alert("hello"); and hit C-xC-e at the end of that line Go back to the browser. You ...


4

Finally figured this out. Make sure that the following line is present in the greasemonkey script which you inject: // @include /^https?:/// That will enable skewering of every site. Now do a refresh of the the page. Now at the top right hand side of the window (firefox window) there will be a red triangle. Press on that triangle to inject the greasemonkey ...


1

An alternative to setting httpd-host to a hostname is to set it to an IP. You can use 0.0.0.0 to bind to all local IP addresses. Try (setq httpd-host "0.0.0.0") (it works for me).


1

In case port 8080 is already in use: you can configure skewer/simple-httpd to use another port by customizing the httpd-port variable. (M-x customize-variable<ret>httpd-port)


Only top voted, non community-wiki answers of a minimum length are eligible