Quellcode durchsuchen

emacs.el: Set js-mode indent level to 2

pull/1/head
10sr vor 9 Jahren
Ursprung
Commit
fa0db45f32
1 geänderte Dateien mit 6 neuen und 2 gelöschten Zeilen
  1. +6
    -2
      emacs.el

+ 6
- 2
emacs.el Datei anzeigen

@@ -1108,6 +1108,7 @@ found, otherwise returns nil."
"https://raw.github.com/mooz/js2-mode/master/js2-mode.el"
t)
(lazy-load-eval 'js2-mode)
;; currently do not use js2-mode
;; (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
;; (add-to-list 'auto-mode-alist '("\\.jsm\\'" . js2-mode))
(add-hook 'js2-mode-hook
@@ -1124,11 +1125,12 @@ found, otherwise returns nil."
;; t)
)))

(eval-after-load "js"
(setq js-indent-level 2))

(add-to-list 'interpreter-mode-alist
'("node" . js-mode))

(add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)

(when (lazy-load-eval 'flymake-jslint
'(flymake-jslint-load))
(lazy-load-eval 'js nil
@@ -1137,6 +1139,8 @@ found, otherwise returns nil."

(require 'js-doc nil t)

(add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)

(when (require 'uniquify nil t)
(setq uniquify-buffer-name-style 'post-forward-angle-brackets)
(setq uniquify-ignore-buffers-re "*[^*]+*")


Laden…
Abbrechen
Speichern