<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>elpa-to-submit/espresso.el</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -2,79 +2,24 @@
 ;;
 ;; Part of the Emacs Starter Kit
 
-(eval-after-load 'js2-mode
-  '(progn
-
-     ;; Cosmetics
-     ;; (font-lock-add-keywords
-     ;;  'js2-mode `((&quot;\\(function *\\)(&quot;
-     ;;               (0 (progn (compose-region (match-beginning 1) (match-end 1)
-     ;;                                         &quot;&#402;&quot;)
-     ;;                         nil)))))
-
-     (font-lock-add-keywords
-      'js2-mode
-      '((&quot;\\&lt;\\(FIX\\|TODO\\|FIXME\\|HACK\\|REFACTOR\\):&quot;
-         1 font-lock-warning-face t)))
-
-     (defun js-lambda () (interactive) (insert &quot;function () {\n}&quot;)
-       (backward-char 5))
-
-     (add-hook 'js2-mode-hook 'local-column-number-mode)
-     (add-hook 'js2-mode-hook 'local-comment-auto-fill)
-     (add-hook 'js2-mode-hook 'turn-on-hl-line-mode)
-
-     (define-key js2-mode-map (kbd &quot;C-c l&quot;) 'js-lambda)
-     (define-key js2-mode-map &quot;\C-\M-h&quot; 'backward-kill-word)
-
-     ;; Fix js2's crazy indentation
-     (define-key js2-mode-map (kbd &quot;TAB&quot;) (lambda () (interactive)
-                                            (indent-for-tab-command)
-                                            (back-to-indentation)))
-
-     (setq js2-bounce-indent-flag nil
-           js2-indent-on-enter-key nil)
-
-     (defun js-continued-var-decl-list-p ()
-       &quot;Return non-nil if point is inside a continued variable declaration list.&quot;
-       (interactive)
-       (let ((start (save-excursion (js-re-search-backward &quot;\\&lt;var\\&gt;&quot; nil t))))
-         (and start
-              (save-excursion (re-search-backward &quot;\n&quot; start t))
-              (not (save-excursion
-                     (js-re-search-backward
-                      &quot;;\\|[^, \t][ \t]*\\(/[/*]\\|$\\)&quot; start t))))))
-     
-     (defun js-proper-indentation (parse-status)
-       &quot;Return the proper indentation for the current line.&quot;
-       (save-excursion
-         (back-to-indentation)
-         (let ((ctrl-stmt-indent (js-ctrl-statement-indentation))
-               (same-indent-p (looking-at &quot;[]})]\\|\\&lt;case\\&gt;\\|\\&lt;default\\&gt;&quot;))
-               (continued-expr-p (js-continued-expression-p)))
-           (cond (ctrl-stmt-indent)
-                 ((js-continued-var-decl-list-p)
-                  (js-re-search-backward &quot;\\&lt;var\\&gt;&quot; nil t)
-                  (+ (current-indentation) js2-basic-offset))
-                 ((nth 1 parse-status)
-                  (goto-char (nth 1 parse-status))
-                  (if (looking-at &quot;[({[][ \t]*\\(/[/*]\\|$\\)&quot;)
-                      (progn
-                        (skip-syntax-backward &quot; &quot;)
-                        (when (= (char-before) ?\)) (backward-list))
-                        (back-to-indentation)
-                        (cond (same-indent-p
-                               (current-column))
-                              (continued-expr-p
-                               (+ (current-column) (* 2 js2-basic-offset)))
-                              (t
-                               (+ (current-column) js2-basic-offset))))
-                    (unless same-indent-p
-                      (forward-char)
-                      (skip-chars-forward &quot; \t&quot;))
-                    (current-column)))
-                 (continued-expr-p js2-basic-offset)
-                 (t 0)))))))
+(font-lock-add-keywords
+ 'espresso-mode `((&quot;\\(function *\\)(&quot;
+                   (0 (progn (compose-region (match-beginning 1) (match-end 1)
+                                             &quot;&#402;&quot;)
+                             nil)))))
+
+(font-lock-add-keywords 'espresso-mode
+                        '((&quot;\\&lt;\\(FIX\\|TODO\\|FIXME\\|HACK\\|REFACTOR\\):&quot;
+                           1 font-lock-warning-face t)))
+
+(autoload 'espresso-mode &quot;espresso&quot; &quot;Start espresso-mode&quot; t)
+(add-to-list 'auto-mode-alist '(&quot;\\.js$&quot; . espresso-mode))
+(add-to-list 'auto-mode-alist '(&quot;\\.json$&quot; . espresso-mode))
+(add-hook 'espresso-mode-hook 'moz-minor-mode)
+(add-hook 'espresso-mode-hook 'turn-on-paredit)
+(add-hook 'espresso-mode-hook 'run-coding-hook)
+(add-hook 'espresso-mode-hook 'idle-highlight)
+(setq espresso-indent-level 2)
 
 (defun esk-pp-json ()
   &quot;Pretty-print the json object following point.&quot;</diff>
      <filename>starter-kit-js.el</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2138ec178290eaddbd8bb87c2c582b8a7c67a8d0</id>
    </parent>
  </parents>
  <author>
    <name>Phil Hagelberg</name>
    <email>technomancy@gmail.com</email>
  </author>
  <url>http://github.com/technomancy/emacs-starter-kit/commit/a43b4a669822f7649ec830a25ae3a256b086655a</url>
  <id>a43b4a669822f7649ec830a25ae3a256b086655a</id>
  <committed-date>2009-06-16T11:06:24-07:00</committed-date>
  <authored-date>2009-06-16T11:06:24-07:00</authored-date>
  <message>Switch from js2-mode to espresso.</message>
  <tree>a7b1fc9a469780184487556856cfd480887bc656</tree>
  <committer>
    <name>Phil Hagelberg</name>
    <email>technomancy@gmail.com</email>
  </committer>
</commit>
