Skip to content

Instantly share code, notes, and snippets.

@ainame
Created December 13, 2011 08:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ainame/1471274 to your computer and use it in GitHub Desktop.
Save ainame/1471274 to your computer and use it in GitHub Desktop.
;; インデントの関数の再設定
(add-hook 'js2-mode-hook
#'(lambda ()
(require 'js)
(setq js-indent-level 4
js-expr-indent-offset 4
indent-tabs-mode nil)
(set (make-local-variable 'indent-line-function) 'js-indent-line)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment