Created
January 9, 2012 16:36
-
-
Save sakama/1583733 to your computer and use it in GitHub Desktop.
Cocoa Emacs(Emacs23.3b)フルスクリーン対応などのパッチを当ててインストールする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget ftp://ftp.ring.gr.jp/pub/GNU/emacs/emacs-23.3b.tar.bz2 | |
tar xjf emacs-23.3b.tar.bz2 | |
curl -o xcode_1.patch http://repo.or.cz/w/emacs.git/commitdiff_plain/c8bba48c5889c4773c62a10f7c3d4383881f11c1 | |
curl -o xcode_2.patch https://raw.github.com/gist/1098107 | |
curl -o fullscreen.patch https://raw.github.com/gist/1012927 | |
curl -o lion.patch https://raw.github.com/gist/1101856 | |
svn co http://svn.sourceforge.jp/svnroot/macemacsjp/inline_patch/trunk inline_patch-svn | |
cd emacs-23.3 | |
patch -p1 < ../xcode_1.patch | |
patch -p1 < ../xcode_2.patch | |
patch -p1 < ../fullscreen.patch | |
patch -p1 < ../lion.patch | |
patch -p1 < ../inline_patch-svn/emacs-inline.patch | |
patch -p0 < ../inline_patch-svn/emacs-inline.patch | |
patch -p0 < ../inline_patch-svn/font.patch | |
./configure --with-ns --without-x | |
make bootstrap | |
make install | |
#init.elに以下を追加(ATOK Ver.24の場合) | |
#「*scratch*」バッファでIMを有効化した状態で「(mac-get-current-input-source)」を評価(C-j)で分かる | |
(mac-set-input-method-parameter "com.justsystems.inputmethod.atok24.Japanese" `title "漢") | |
(mac-set-input-method-parameter "com.justsystems.inputmethod.atok24.Japanese" `cursor-type 'box) | |
(mac-set-input-method-parameter "com.justsystems.inputmethod.atok24.Japanese" `cursor-color "magenta") | |
#この1行はinit.elの最後に追記 | |
(setq default-input-method "MacOSX") | |
#init.elに以下を追加(Google IMEの場合) | |
(mac-set-input-method-parameter "com.google.inputmethod.Japanese.base" `title "漢") | |
(mac-set-input-method-parameter "com.google.inputmethod.Japanese.base" `cursor-type `box) | |
(mac-set-input-method-parameter "com.google.inputmethod.Japanese.base" `cursor-color "magenta") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment