&tag(Homebrew/emacs);
*目次 [#b765256a]
#contents
*参考情報 [#n88db20a]
-[[Homebrew]]

*24.4のインストール [#rab79843]
**最新の方法 [#gf81168d]
-2015/01/07現在、24.4.1でインラインパッチがきいていない。
-[[Homebrew emacsで--japaneseオプション復活させてみた! - Qiita:http://qiita.com/ksato9700/items/f4bb04d21d19e90f6d39]]にある方法でインストールする。
 brew install https://gist.githubusercontent.com/ksato9700/0b3c71adafc256ddf280/raw/f48ac50bf8d1a16aa63606b137cd29b8fb1d7414/emacs.rb --japanese --cocoa --srgb --with-gnutls

*24.3のインストール [#x57e9abf]
**最新の方法 [#z5b61d8f]
-[[homebrew - 最近のemacs.rb - Qiita [キータ]:http://qiita.com/h12o@github/items/07f773909da5ebdb7b7c]]、[[HomebrewのEmacsにIMEインラインパッチが取り込まれたので設定した - @znz blog:http://blog.n-z.jp/blog/2013-11-12-cocoa-emacs-ime.html]]
 brew update
 brew uninstall emacs
 brew install --cocoa --srgb --with-gnutls --japanese emacs -v

以下オプション
- --with-gnutls: GNUTLSを有効にする。[[Emacs GnuTLS Integration {No value for `VERSION'}:http://www.gnu.org/software/emacs/manual/html_mono/emacs-gnutls.html]]。
- --srgb: sRGBを有効にする。
-Emacs.appをコピーする。シンボリックリンクしないのはAlfredなどが見つけられないから。
 $ cp -a /usr/local/Cellar/emacs/24.3/Emacs.app /Applications

**古い方法 [#f47304cd]
-[[Homebrewのemacsをeditしてインラインパッチなどを当てる(Emacs-24.3) #Emacs - Qiita [キータ]:http://qiita.com/items/0824b0a4fd1eaae67019]]
-/usr/local/Library/Formula/emacs.rbを編集。def installの前に以下の部分を追加する。
#pre{{
  def patches
    if build.include? "cocoa" and not build.head?
       { :p0 => "https://gist.github.com/ganta/5139150/raw/8f6fc32747c40a51de597ce73085f56764a7d3ed/japanese-patch-for-emacs-24.3.patch" }
    end
  end
}}
-ビルド
 $ brew install emacs --cocoa --env=std
-インストール後、リンクする
 $ ln -s /usr/local/Cellar/emacs/24.3/Emacs.app /Applications

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS