From: Xah <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: how to run javascript in emacs?
Date: Wed, 9 Jul 2008 18:10:44 -0700 (PDT) [thread overview]
Message-ID: <7f65b477-3b87-43bf-aff6-66d195a33b9f@b1g2000hsg.googlegroups.com> (raw)
I want to run Javascript in a console with emacs. Does anyone have
suggestions on what's the solution?
Here's some detail... In perl/python/php, i can just write the code in
a buffer/file and run it with M-!. I would like to have something
similar for javascript. Basically, with the end result that i just
type in a buffer, save, press some button or command in emacs, and see
results. How can i do this?
I haven't much experience in coding javascript other than coding
simple sample scripts, and today i just downloaded Firebug in Firefox
3 but i don't want to have to switch to the browser.
The context is learning and experimenting with the language. I don't
need the DOM attached. Just need to for example write fibonacci or
prime generator and or other pure string manipulation functions with
js.
Since FF has a js engine... is there a way to call the js interpreter
with operating system's command line? If so, that'd solve my problem.
(am not familiar with FF dev)
Thanks.
Xah
∑ http://xahlee.org/
☄
next reply other threads:[~2008-07-10 1:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-10 1:10 Xah [this message]
2008-07-10 3:05 ` how to run javascript in emacs? Xah
2008-07-11 4:33 ` Tim X
2008-07-16 10:04 ` Arnaud Diederen (aundro)
2008-07-19 4:46 ` David Hansen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7f65b477-3b87-43bf-aff6-66d195a33b9f@b1g2000hsg.googlegroups.com \
--to=xahlee@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).