0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Macに日本語インラインパッチをあててEmacs32をインストールする

0
Posted at

前回:Macに日本語インラインパッチをあててEmacs30をインストールする

brew tap

emacs-plusのリポジトリをタップします。

$ brew tap d12frosted/emacs-plus

インラインパッチのsha256ハッシュ値取得

引き続き、こちらのインラインパッチを使わせて頂きます :bow:
パッチファイルをダウンロードしたら、ファイルの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-toggleM-x mac-ime-activateM-x mac-ime-deactivate 等のコマンドが使えるか確認します。

エイリアスの設定

前回同様、Alfredから見つかるようにエイリアスを設定しました。

-> /opt/homebrew/Cellar/emacs-plus@32/32.xx.xx/Emacs のエイリアスを/Applicationsに作成。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?