Permalink
Browse files

Add coffee-mode

  • Loading branch information...
purcell committed Mar 15, 2011
1 parent 8075533 commit 504f7df152ebe813eb063f0da1fa01404cf2ad4a
Showing with 4 additions and 0 deletions.
  1. +1 −0 init-el-get.el
  2. +3 −0 init-javascript.el
View
@@ -121,6 +121,7 @@
;; Javascript
js2-mode
+ coffee-mode
js-comint
(:name moz :type http :url "http://github.com/bard/mozrepl/raw/master/chrome/content/moz.el")
json
View
@@ -63,6 +63,9 @@
(dolist (mode (list 'html-mode 'nxml-mode))
(mmm-add-mode-ext-class mode "\\.r?html\\(\\.erb\\)?$" 'html-js))))
+(eval-after-load "coffee-mode"
+ `(setq coffee-js-mode preferred-javascript-mode
+ coffee-tab-width preferred-javascript-indent-level))
(require 'js-comint)
(setq inferior-js-program-command "js")

0 comments on commit 504f7df

Please sign in to comment.