emacs23.4が出ていたので、23系に変えてみた。
emacsformacosx.comでバイナリが配布されているが、今回は、ソースからビルドすることにした。
Lionでは、メニューバーが表示できない不具合がある。
幸いなことにtypesterさんがgithubにパッチをアップしてくれているので、取得する。
$ wget https://github.com/downloads/typester/emacs/emacs-23-lion-fullscreen-test.patch
インラインIMEパッチを取得。
$ wget http://jaist.dl.sourceforge.jp/macemacsjp/45818/inline_patch-23.1.92-b1.tar.gz
emacs23.4を取得。
$ wget http://core.ring.gr.jp/pub/GNU/emacs/emacs-23.4.tar.gz
取得したemacsのソースに各種パッチを当てる。
$ tar xzvf emacs-23.4.tar.gz $ tar xzvf inline_patch-23.1.92-b1.tar.gz $ cd emacs-23.4 $ patch -p1 < ../emacs-23-lion-fullscreen-test.patch $ patch -p0 < ../inline_patch-23.1.92-b1/emacs-inline.patch $ ./configure --with-ns --without-x $ make bootstrap $ make install
"make bootstrap"は、同梱されているelispファイルをすべてバイトコンパイルするオプションで、結構時間がかかる。
ビルドが完了すると、nextstep/emacs.appが作成されるので、Applicationディレクトリへコピーして起動。
22の時に使っていた.emacsの設定もすべてが使えるわけではなさそうなので、これから調査します。