ここから本文です
自前ビルドのEmacsにemacsclientがない場合
僕はEmacsをビルドしているのですが、ビルドの仕方が悪いのか、みんながあるあると言っているemacsclientが、/Applications/Emacs.app/Contents/MacOS/bin/のなかにありませんでした。
ので、
からEmacsを入手します。
sudo mkdir /Applications/Emacs.app/Contents/MacOS/bin sudo cp ./emacsclient /Applications/Emacs.app/Contents/MacOS/bin/emacsclient
してやったら、晴れて
(server-start)
の恩恵に与れるようになりました。
ちなみにEmacs.appとemacsclientのバージョンは一致している必要があるらしいので、ご注意を。
ついでのgitconfig設定
editor = /Applications/Emacs.app/Contents/MacOS/bin/emacsclient --alternate-editor /Applications/Emacs.app/Contents/MacOS/Emacs
で、Emacsでコミットメッセージをかけちゃって幸せです。
