       js2-bounce-indent-p nil)
 
 (eval-after-load 'js2-mode '(js2-imenu-extras-setup))
-
-;; js3-mode
-(add-hook 'js3-mode-hook '(lambda () (setq mode-name "JS3")))
-(setq js3-auto-indent-p t
-      js3-enter-indents-newline t
-      js3-indent-on-enter-key t
-      js3-indent-level preferred-javascript-indent-level)
 
 ;; js-mode
 (setq js-indent-level preferred-javascript-indent-level)



(defcustom preferred-javascript-mode
  (first (remove-if-not #'fboundp '(js2-mode js3-mode)))
  "Javascript mode to use for .js files."
  :type 'symbol
  :group 'programming
  :options '(js2-mode js3-mode js-mode))
(defvar preferred-javascript-indent-level 2)

;; Need to first remove from list if present, since elpa adds entries too, which

  "Bindings for communicating with an inferior js interpreter."
  nil " InfJS" inferior-js-minor-mode-map)

(dolist (hook '(js2-mode-hook js-mode-hook))
  (add-hook hook 'inferior-js-keys-mode))

;; ---------------------------------------------------------------------------
