今更ながら Cocoa Emacs
http://macemacsjp.sourceforge.jp/index.php?CocoaEmacs
ああ、Snow Leopard って安定版だとインストールできないのか。今更気付いた…。となると、インラインパッチも無理ってことかな?
開発版のインストール
$ cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs $ cd emacs $ ./configure --with-ns --without-x $ make bootstrap $ make install $ cd nextstep $ cp -r Emacs.app /Applications/CocoaEmacs.app $ open /Applications/CocoaEmacs.app
雑感
- 起動速すぎ。さすが 64bit
- 物理行移動が気持ちいい
- ⌘+C とか ⌘+V とかが使える
- Meta は Option
- delete-by-moving-to-trash
- Carbon Emacs と色味が違うような気がする
それと、ファイルを編集した後に save-buffer せずにウィンドウの赤ボタンをクリックして Emacs を終了させようとすると、強制終了になる。
常用は出来そうにないけど、ついでだから TeX 関連で少しインストールしてみた。
AUCTeX
$ curl -O http://ftp.gnu.org/pub/gnu/auctex/auctex-11.85.tar.gz $ tar xvzf auctex-11.85.tar.gz $ cd auctex-11.85 $ ./configure --with-emacs=/Applications/CocoaEmacs.app/Contents/MacOS/Emacs --with-lispdir=/Applications/CocoaEmacs.app/Contents/Resources/site-lisp $ make $ sudo make install
で、.emacs.el に
(require 'tex-site) (require 'preview-latex)
YaTeX
$ curl -O http://www.yatex.org/yatex1.74.tar.gz $ tar xvzf yatex1.74.tar.gz $ cd yatex1.74 $ open -a CocoaEmacs makefile
makefile を
PREFIX = /Applications/CocoaEmacs.app/Contents/Resources EMACS = /Applications/CocoaEmacs.app/Contents/MacOS/Emacs EMACSDIR = ${PREFIX}
と変更し、
$ make install $ make install-info
で、.emacs.el に
(autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t)
追記
インラインパッチ使えるようになってた!
http://sourceforge.jp/projects/macemacsjp/svn/view/inline_patch/trunk/?root=macemacsjp
パッチの中身見ると現時点では Emacs 23.1.91 用ってことらしい。このパッチを適用してインストール。あとは、.emacs.el に
(setq default-input-method "MacOSX")