   "SPC while naming a defined method insert an underscore"
   (interactive)
   (if (and (looking-back "def .+")
-	   (not (and
-		 (looking-at ".*)")
-		 (looking-back "(.*"))))
+           (not (and
+                 (looking-at ".*)")
+                 (looking-back "(.*"))))
       (insert "_")
     (insert " ")))
 

  (interactive)
  (if (member 'angel-dark custom-enabled-themes)
      (progn
	(disable-theme 'solarized-dark)
	(disable-theme 'angel-dark)
	(load-theme 'angel-light t))
    (disable-theme 'angel-light)
    (load-theme 'angel-dark t)))


    (define-key js2-mode-map  (kbd "C-c d")  'j/js-insert-debugger)))

(add-hook 'js2-mode-hook
          (lambda () (setq mode-name "JS2")))

(setq-default js-indent-level 4
              js2-allow-keywords-as-property-names t
