block_given?

ジャングル ブロック ナイ アルノハ jump ダケ。CC-BY-SA 3.0

モダンなEmacsを求めて (1) モダンなEmacsを使う OSX編

今回のモダンなEmacsを求めてはモダンなEmacsの導入方法について。

新しいEmacsでは、パッケージ管理などの便利な機能が使えるらしい。

Mac OX Mavericksにデフォルトで入っているEmacsのバージョンを確認する。

$ /usr/bin/emacs --version
GNU Emacs 22.1.1
Copyright (C) 2007 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

古い。新しいEmacsbrewで入れる。 新しくインストールする際、GUI(Cocoa版)のEmacsも同時に入れたい。 なぜなら黒い画面以外からも使いたくなることがあるからだ。

そのため、--cocoaオプションをつけてインストールする。

$ brew update
$ brew install emacs --cocoa
$ emacs --version
GNU Emacs 24.4.1
Copyright (C) 2014 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

新しめのEmacsが入った。

画面でも確認する。以下のコマンドを実行すると、Mac用のアプリがリンクされ、Launchpadに出てくるようになる。

$ brew linkapps

自分でビルドするのが面倒な人はGNU Emacs For Mac OS Xからダウンロードするといい。