 (menu-bar-mode)
 
 ;;;; Ruby
-(add-hook 'ruby-mode-hook 'flymake-ruby-load)
-(add-hook 'ruby-mode-hook 'rspec-mode)
-
-
-;;;; JavaScript
-(autoload 'js2-mode "js2-mode" nil t)
-(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
-(require 'js2-mode)
+;; (add-hook 'ruby-mode-hook 'flymake-ruby-load)
+(require 'rspec-mode)
+
+;; TODO - why is the default rspec-mode-verifible-keymap instead of
+;; rspec-mode-keymap ?
+;; https://github.com/pezra/rspec-mode/blob/master/rspec-mode.el#L470
+(add-hook 'ruby-mode-hook
+          (lambda () (local-set-key rspec-key-command-prefix rspec-mode-keymap))
+          'rspec-mode)
+
+;; 1.9 syntax checking
+;; (add-to-list 'load-path "~/.emacs.d/el-get/Enhanced-Ruby-Mode")
+;; (require 'ruby-mode)
+
+;; ;;;; JavaScript
+;; (autoload 'js2-mode "js2-mode" nil t)
+(add-to-list 'auto-mode-alist '("\\.js$" . js3-mode))
+(require 'js3-mode)
 
 (require 'stylus-mode)
 

(when (not package-archive-contents)
  (package-refresh-contents))

(defvar my-packages '(starter-kit starter-kit-lisp clojure-mode)
  "A list of packages to ensure are installed at launch")

(dolist (p my-packages)

(setq inferior-lisp-program "/usr/local/bin/clisp")
(require 'rainbow-delimiters)

(setq coffee-command "/usr/local/bin/coffee")

;;;; PeepOpen
(require 'textmate)
(add-to-list 'load-path "~/.emacs.d/vendor/")
(require 'peepopen)
