#author("2022-04-18T05:27:47+00:00","default:src128","src128")
&tag(Homebrew/emacs);
*目次 [#b765256a]
#contents
*参考情報 [#n88db20a]
-[[Homebrew]]
-[[Homebrew で IME インラインパッチを当てた Emacs 24.5.1 を入れる | nDiki:http://www.naney.org/diki/d/2015-07-24-Emacs.html]]
-[[./古い内容2]]
-[[./古い内容]]


*24.5のインストール [#i905352c]
-以下の方法でインストールする。
 brew install https://gist.githubusercontent.com/ssugiyama/5ff88299efadd61415c5/raw/588c209dd8f3e5b99c7f39e149d9c70d0ab3be02/emacs-jp.rb  --japanese --with-cocoa --srgb --with-gnutls
-Emacs.appをコピー
 sudo cp -a /usr/local/Cellar/emacs/24.5/Emacs.app /Applications
*24.4のインストール [#rab79843]
*** 24.4.1 [#fe4fe07d]
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の前に以下の部分を追加する。
*インストール: 2022/04/18(月) [#pcd266d3]
-Emacs Mac Port版が最適化
-以下のコマンドでインストールできる。最後の行はAlfredで表示するため。Alfredはシンボリックリンクを認識しない。macOSのaliasは認識するらしいが手順が複雑なのでコピーするのがてっとりばやい。
#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 tap railwaycat/emacsmacport
brew install emacs-mac --with-modern-icon
cp -a /opt/homebrew/opt/emacs-mac/Emacs.app /Applications
}}
-ビルド
 $ brew install emacs --cocoa --env=std
-インストール後、リンクする
 $ ln -s /usr/local/Cellar/emacs/24.3/Emacs.app /Applications
-「--with-modern-icon」でアイコンをモダンにしている。オプションは以下のコマンドで確認可能。「--with-imagemagic」は必要かどうか不明。
#pre{{
brew info emacs-mac
}}


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