Created
September 15, 2012 10:58
-
-
Save nanasess/3727341 to your computer and use it in GitHub Desktop.
js3-mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;; | |
;;; js3-mode settings | |
;;; | |
;;; (auto-install-from-url "https://raw.github.com/thomblake/js3-mode/master/js3.el") | |
;;; | |
(setq js3-mirror-mode t) | |
(autoload 'js3-mode "js3" nil t) | |
(add-to-list 'auto-mode-alist '("\\.js$" . js3-mode)) | |
(add-hook 'js3-mode-hook | |
(lambda () | |
(setq js3-indent-level 4) | |
(setq js3-mode-dev-mode-p t) | |
(setq js3-auto-indent-p t) | |
(setq js3-enter-indents-newline t) | |
(setq js3-indent-on-enter-key t) | |
(when (require 'auto-complete nil t) | |
(make-variable-buffer-local 'ac-sources) | |
(add-to-list 'ac-sources 'ac-source-yasnippet) | |
(auto-complete-mode t)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment