2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

emacsでjavascriptのインデントを設定するjs2-modeの設定の仕方。

Last updated at Posted at 2014-01-15

1.% git clone git://github.com/mooz/js2-mode.git
からデータをクローン。

2.% emacs --batch -f batch-byte-compile js2-mode.el
データをコンパイルする。

3.コンパイルされた、js2-mode.elc を emacsのsite-lispにコピー。emacs.el に以下を追記。

ーー
(autoload 'js2-mode "js2-mode" nil t)
(add-to-list 'auto-mode-alist '("\.js$" . js2-mode))
http://d.hatena.ne.jp/hrendoh/20110907/1315410253

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?