前回:Macに日本語インラインパッチをあててEmacs30をインストールする
brew tap
emacs-plusのリポジトリをタップします。
$ brew tap d12frosted/emacs-plus
インラインパッチのsha256ハッシュ値取得
引き続き、こちらのインラインパッチを使わせて頂きます ![]()
パッチファイルをダウンロードしたら、ファイルのsha256ハッシュを控えておきます。
curl https://raw.githubusercontent.com/takaxp/ns-inline-patch/master/emacs-head-inline.patch -OL
shasum -a 256 emacs-head-inline.patch
パッチ
~/.config/emacs-plus フォルダを作成し、以下の内容でbuild.ymlを置きます。
# Use a community icon (see community/registry.json for available options)
# icon: modern-purple-flat
# Apply community patches
patches:
- my-patch:
url: https://raw.githubusercontent.com/takaxp/ns-inline-patch/master/emacs-head-inline.patch
sha256: 控えておいたハッシュ
brew install
最後に brew install でインストールします。
(ビルド時のエラーを回避するためにHOMEBREW_OPTFLAGS="-std=gnu17"を付けてます。)
HOMEBREW_OPTFLAGS="-std=gnu17" brew install d12frosted/emacs-plus/emacs-plus@32
ビルドが終わり、正常にEmacsが起動したら、M-x mac-ime-toggle、 M-x mac-ime-activate、 M-x mac-ime-deactivate 等のコマンドが使えるか確認します。
エイリアスの設定
前回同様、Alfredから見つかるようにエイリアスを設定しました。
-> /opt/homebrew/Cellar/emacs-plus@32/32.xx.xx/Emacs のエイリアスを/Applicationsに作成。