Skip to content

Instantly share code, notes, and snippets.

@shuujii
Created May 3, 2012 02:59
Show Gist options
  • Select an option

  • Save shuujii/2582702 to your computer and use it in GitHub Desktop.

Select an option

Save shuujii/2582702 to your computer and use it in GitHub Desktop.
Install Cocoa Emacs 23.4 on Mac (Lion)

以下を参考にした。

コンパイル:

$ wget http://ftp.gnu.org/pub/gnu/emacs/emacs-23.4.tar.bz2
$ tar xf emacs-23.4.tar.bz2
$ cd emacs-23.4
$ mkdir patch
$ cd patch
$ wget https://github.com/downloads/typester/emacs/emacs-23-lion-fullscreen-test.patch
$ wget 'http://sourceforge.jp/projects/macemacsjp/svn/view/inline_patch/trunk/emacs-inline.patch?view=co&revision=579&root=macemacsjp' -O emacs-inline.patch
$ wget https://raw.github.com/gist/1697875/6ec6f6e869f8c6b9733fd9a7c635c12fead46e14/fix-shiftmodifier-patch-for-emacs-inline-patch.diff
$ wget https://raw.github.com/gist/397610/a459b517a4cb07f5a1938b6e46e848860f42b464/gistfile1.diff -O fix-popup-crash-for-inline-patch.patch
$ wget https://raw.github.com/gist/2583619/ad67c66596cbae00dcd967eaf411b9d02add330c/fix-limited-ime-input-crash-for-inline-patch.patch
$ cd ..
$ patch -p1 < patch/emacs-23-lion-fullscreen-test.patch
$ patch -p0 < patch/emacs-inline.patch
$ patch -p1 < patch/fix-shiftmodifier-patch-for-emacs-inline-patch.diff
$ patch -p1 < patch/fix-popup-crash-for-inline-patch.patch
$ patch -p1 < patch/fix-limited-ime-input-crash-for-inline-patch.patch
$ ./configure --with-ns --without-x --without-dbus
$ make bootstrap
$ make install

動作確認:

$ nextstep/Emacs.app/Contents/MacOS/Emacs

インストール:

$ \cp -r nextstep/Emacs.app /Applications
$ rm ../emacs-23.4.tar.bz2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment