瀏覽代碼

Remove some modifications to js2-mode

master
10sr 6 年之前
父節點
當前提交
70f6206e2e
共有 1 個檔案被更改,包括 5 行新增5 行删除
  1. +5
    -5
      emacs.el

+ 5
- 5
emacs.el 查看文件

@@ -1014,11 +1014,11 @@ found, otherwise returns nil."
;; currently do not use js2-mode
;; (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
;; (add-to-list 'auto-mode-alist '("\\.jsm\\'" . js2-mode))
(defvar js2-mode-map (make-sparse-keymap))
(define-key js2-mode-map (kbd "C-m") (lambda ()
(interactive)
(js2-enter-key)
(indent-for-tab-command)))
;; (defvar js2-mode-map (make-sparse-keymap))
;; (define-key js2-mode-map (kbd "C-m") (lambda ()
;; (interactive)
;; (js2-enter-key)
;; (indent-for-tab-command)))
;; (add-hook (kill-local-variable 'before-save-hook)
;; 'js2-before-save)
;; (add-hook 'before-save-hook


Loading…
取消
儲存