Emacs 24.4 のインストール


Posted onOct 24, 2014

僕はメインマシンが Mac なので, Homebrew でインストー ルします. brew install 一発でインストールできるのでほんと便利. 今回 はとりあえず全部入りでインストールしてみました.

% brew install emacs --cocoa --keep-ctags --with-d-bus --with-gnutls --with-imagemagick --with-librsvg --with-mailutils

ちなみに, どういうコンパイルオプションがあるかは brew info emacs で確認できます.

brew info emacs                                                                                                                                         rvm:ruby-2.0.0-p576
emacs: stable 24.4 (bottled), HEAD
/usr/local/Cellar/emacs/24.3 (3911 files, 116M)
  Built from source with: --keep-ctags, --cocoa, --srgb
/usr/local/Cellar/emacs/24.4 (3924 files, 118M) *
  Built from source with: --cocoa, --keep-ctags, --with-d-bus, --with-gnutls, --with-imagemagick, --with-librsvg, --with-mailutils
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/emacs.rb
==> Dependencies
Build: xz ✔, pkg-config ✔
Optional: d-bus ✔, gnutls ✔, librsvg ✔, imagemagick ✔, mailutils ✔, glib ✔
==> Options
        Build a Cocoa version of emacs
        Don't remove the ctags executable that emacs provides
        Use Savannah (faster) git mirror for HEAD builds
        Build with d-bus support
        Build with glib support
        Build with gnutls support
        Build with imagemagick support
        Build with librsvg support
        Build with mailutils support
        Include X11 support
        install HEAD version
==> Caveats
To have launchd start emacs at login:
    ln -sfv /usr/local/opt/emacs/*.plist ~/Library/LaunchAgents
Then to load emacs now:
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.emacs.plist

WARNING: launchctl will fail when run under tmux.
.app bundles were installed.
Run `brew linkapps` to symlink these to /Applications.

コンパイルオプションがわりとたくさんありますが, 次のように選びました.

インストールが終わったら, /Applications/Emacs.app を作ります.

% brew linkapps