以前からCocoa Emacsを使っていましたが、非フルスクリーンモードかつ非インライン入力という状態でした。2011年12月号のSoftware Designの第1特集「Mac活用術」の中で、インストール方法が詳しく書かれていたのでやってみました。
インストールの履歴
$ wget ftp://ftp.ring.gr.jp/pub/GNU/emacs/emacs-23.3b.tar.bz2 $ tar xjf emacs-23.3b.tar.bz2 $ curl -o xcode_1.patch http://repo.or.cz/w/emacs.git/commitdiff_plain/c8bba48c5889c4773c62a10f7c3d4383881f11c1 $ curl -o xcode_2.patch https://raw.github.com/gist/1098107 $ curl -o fullscreen.patch https://raw.github.com/gist/1012927 $ curl -o lion.patch https://raw.github.com/gist/1101856 $ svn co http://svn.sourceforge.jp/svnroot/macemacsjp/inline_patch/trunk inline_patch-svn $ cd emacs-23.3 $ patch -p1 < ../xcode_1.patch $ patch -p1 < ../xcode_2.patch $ patch -p1 < ../fullscreen.patch $ patch -p1 < ../lion.patch $ patch -p1 < ../inline_patch-svn/emacs-inline.patch $ patch -p0 < ../inline_patch-svn/emacs-inline.patch $ patch -p0 < ../inline_patch-svn/font.patch $ ./configure --with-ns --without-x $ make bootstrap $ make install
.emacsへの追加
(setq default-input-method "MacOSX") ;; Google Japanese Input (mac-set-input-method-parameter "com.google.inputmethod.Japanese.base" `title "漢") (mac-set-input-method-parameter "com.google.inputmethod.Japanese.base" `cursor-type `box) (mac-set-input-method-parameter "com.google.inputmethod.Japanese.base" `cursor-color "magenta")