Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOSでのEmacsのインストール手順をまとめる #4

Open
zonuexe opened this issue Aug 20, 2017 · 1 comment
Open

macOSでのEmacsのインストール手順をまとめる #4

zonuexe opened this issue Aug 20, 2017 · 1 comment

Comments

@zonuexe
Copy link
Member

zonuexe commented Aug 20, 2017

No description provided.

@jidaikobo-shibata
Copy link

僕の手順の例です。

まず、Xcode Command Line Toolsは入っている前提です。

ftp://ftp.gnu.org/pub/gnu/emacs/ にいって、あたらしいEmacsがあるかどうか確認します。

ftp://ftp.math.s.chiba-u.ac.jp/emacs/ にいって、あたらしいパッチの存在を確認します。

また、Emacsのメジャーバージョンが同じ場合は、emacsclientを使い回すので、ApplicationsディレクトリにいまあるEmacsをとっておきます。メジャーバージョンが上がっちゃう場合は、https://www.gnu.org/software/emacs/ 本家に行って、あうメジャーバージョンのものをダウンロードして来ます。

以下、terminal作業です。バージョンは適宜あわせます。

まず取得。

curl -LO http://ftp.gnu.org/pub/gnu/emacs/emacs-25.2.tar.xz
curl -LO ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-25.2-mac-6.5.tar.gz

展開。

tar xfJ emacs-25.2.tar.xz
tar xfz emacs-25.2-mac-6.5.tar.gz

パッチあててmake

cd emacs-25.2
patch -p 1 < ../emacs-25.2-mac-6.5/patch-mac
cp -r ../emacs-25.2-mac-6.5/mac mac
cp ../emacs-25.2-mac-6.5/src/* src
cp ../emacs-25.2-mac-6.5/lisp/term/mac-win.el lisp/term
\cp nextstep/Cocoa/Emacs.base/Contents/Resources/Emacs.icns mac/Emacs.app/Contents/Resources/Emacs.icns
./configure --prefix=$HOME/opt/emacs-25.2 --with-mac --without-x
make
make GZIP_PROG='' install

emacsclientをうつす。

mkdir mac/Emacs.app/Contents/MacOS/bin
cp /Applications/Emacs.app/Contents/MacOS/bin/emacsclient mac/Emacs.app/Contents/MacOS/bin/

Applicationディレクトリに移動。

cp -r mac/Emacs.app /Applications

もともとは、http://masutaka.net/chalow/2015-04-12-1.html を参考にさせてもらいました。

なんで、本家でダウンロードしたものをそのまま使わないのかは、自分でもよくわかりません ;-P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants