<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikemacs.org/index.php?action=history&amp;feed=atom&amp;title=CoffeeScript</id>
	<title>CoffeeScript - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wikemacs.org/index.php?action=history&amp;feed=atom&amp;title=CoffeeScript"/>
	<link rel="alternate" type="text/html" href="https://wikemacs.org/index.php?title=CoffeeScript&amp;action=history"/>
	<updated>2026-04-04T01:20:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wikemacs.org/index.php?title=CoffeeScript&amp;diff=46595&amp;oldid=prev</id>
		<title>Elvince: coffee script</title>
		<link rel="alternate" type="text/html" href="https://wikemacs.org/index.php?title=CoffeeScript&amp;diff=46595&amp;oldid=prev"/>
		<updated>2014-04-08T14:54:19Z</updated>

		<summary type="html">&lt;p&gt;coffee script&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''CoffeeScript''' is a little language that compiles to JavaScript.&lt;br /&gt;
&lt;br /&gt;
= Coffee mode =&lt;br /&gt;
&lt;br /&gt;
There is a major mode to edit Coffee and it is available in [[ELPA]]: '''coffee-mode'''. Its installation is then straightforward: {{Command| package-install RET coffee-mode RET}}.&lt;br /&gt;
&lt;br /&gt;
See its documentation: https://github.com/defunkt/coffee-mode/&lt;br /&gt;
&lt;br /&gt;
= Flymake =&lt;br /&gt;
&lt;br /&gt;
A flymake handler for syntax-checking Coffeescript source code using coffeelint or coffee: https://github.com/purcell/flymake-coffee&lt;br /&gt;
&lt;br /&gt;
= Tips and tricks =&lt;br /&gt;
&lt;br /&gt;
== Convert snippet from JavaScript to Coffee ==&lt;br /&gt;
&lt;br /&gt;
Coffee-mode comes with a nice function which is not documented. If you copy a JS snippet from the web you'll want to convert it to coffee. While there are online tools, you can do the following:&lt;br /&gt;
&lt;br /&gt;
* install `js2coffee` with `npm`:&lt;br /&gt;
&lt;br /&gt;
    npm install -g js2coffee  # npm comes with nodejs&lt;br /&gt;
&lt;br /&gt;
* now select a region and call {{Command|coffee-js2coffee-replace-region}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Programming languages]]&lt;br /&gt;
[[Category:Programming]]&lt;br /&gt;
[[Category:JavaScript| JavaScript]]&lt;br /&gt;
[[Category:Third Party Package]]&lt;/div&gt;</summary>
		<author><name>Elvince</name></author>
	</entry>
</feed>