Permalink
Browse files

js2-mode

  • Loading branch information...
1 parent 86b9da0 commit 6a7c24dbbeebb543f4baf78505a668fb90eb6dac @timcharper timcharper committed Dec 10, 2010
Showing with 16 additions and 1 deletion.
  1. +3 −0 .gitmodules
  2. +1 −1 init.el
  3. +9 −0 initializers.available/js2-mode.el
  4. +1 −0 initializers.available/linum.el
  5. +1 −0 initializers.enabled/js2-mode.el
  6. +1 −0 vendor/js2-mode
View
@@ -37,3 +37,6 @@
[submodule "vendor/github"]
path = vendor/github
url = git://github.com/leadtune/github.el.git
+[submodule "vendor/js2-mode"]
+ path = vendor/js2-mode
+ url = https://github.com/mooz/js2-mode.git
View
@@ -61,7 +61,7 @@
(require 'starter-kit-lisp)
(require 'starter-kit-perl)
(require 'starter-kit-ruby)
-(require 'starter-kit-js)
+;; (require 'starter-kit-js)
(regen-autoloads)
(load custom-file 'noerror)
@@ -0,0 +1,9 @@
+;; If you prefer js2-mode, use this instead:
+(add-to-list 'load-path "~/.emacs.d/vendor/js2-mode/")
+(autoload 'js2-mode "js2-mode" nil t)
+(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
+
+(eval-after-load 'js2-mode
+ '(progn
+ (define-key js2-mode-map (kbd "C-M-h") nil)))
+
@@ -12,6 +12,7 @@
ruby-mode
html-mode
yaml-mode
+ js2-mode
espresso-mode
feature-mode))
(dolist (mode linum-modes)
Submodule js2-mode added at 7e0708

0 comments on commit 6a7c24d

Please sign in to comment.