-
Notifications
You must be signed in to change notification settings - Fork 57
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
Make setup more easy #41
Comments
I second that. I don't know about impatient, but I could only run "run-skewer" and I couldn't have skewer to work on my own html files. I'd appreciate detailed instructions about how to do so |
@mljrg Could you elaborate on how you get that specific error? The HTML minor mode has no C-c C-k (i.e.
This behavior is a core design principle for Skewer. The goal is to follow the conventions of Emacs' other interactive evaluation modes, like emacs-lisp-mode, cider, slime, octave-mode (sort of), etc. An expression from the current buffer is sent off to an attached interpreter to be evaluated and the result is echoed in the minibuffer. The interpreter doesn't care or know what file it came from, if any (e.g. This paradigm extends to the HTML minor mode, even though there's no evaluation result. That's why it's not automatically reflected. If you really wanted this, and impatient-mode wasn't good enough for you (it reloads the entire page on every change), you could still probably rig skewer-html-mode up to do so with a little bit of effort: stick @humanitiesNerd and @mljrg |
Wow, thank you for your careful words, I appreciate the feedback from you. Actually I tested skewer-html-mode only as a test, to see if I was able to set the thing up. What I'm really working on is a front end made with LESS and I wanted to use skewer to edit a LESS file and see changes applied immediately. So my idea was to try to set it up with something simple and then move towards integrating the skewer-less-mode So I get that the skewer-html-mode is NOT simple. Ok, I get it. Can you suggest a different way to follow ? Or maybe I could describe my setup and you could suggest corrections and integrations towards my goal ? |
One particular problem I had was to hook a browser tab showing my html file with skewer. Even without LESS, just javascript. |
Try out the bookmarklet or the Greasemonkey script. They're both listed in the README.
Carefully read the README. Also here's a series of articles about Skewer that may help spark understanding:
It helps if you understand the same-origin policy, how CORS affects it, and the overall browser evaluation model. |
Ok, I managed to see some edits to a css buffer applied on the fly in the browser. I moved to css, given that the html mode is not so mature. Thanks |
The setup instructions are not clear or effective. I could change my css and press C-c C-k to update in the browser, but doing the same for my html did nothing. Sometimes an error
Uncaught SyntaxError: Failed to execute 'querySelector' on 'Node': The provided selector is empty. skewer:190
appeared but I do not now how to resolve it. The demo video seems that skewer is promising, but I could not set it up. For example, impatient-mode is much simpler and straightfoward to set up, and it works like a breeze without having to press any special keys to see my updates reflected in the browser.
I recommend someone to review the setup instructions for skewer, and remember, specially given that many people are so versed in Emacs.
The text was updated successfully, but these errors were encountered: