@kyanny's blog

My thoughts, my life. Views/opinions are my own.

js2-mode のバイトコンパイルに失敗するときは --batch を使え

Google Code Archive - Long-term storage for Google Code Project Hosting. より。

js2-mode はバイトコンパイル必須だけど、 .emacs などで js2-mode をロード済みの状態でバイトコンパイルしようとすると失敗してしまうことがあるらしい。なので .emacs などを読ませずに起動しないといけない。

$ cd ~/.emacs.d/
$ /Applications/Emacs.app/Contents/MacOS/Emacs -q --batch --eval '(byte-compile-file "js2.el")'