====== Install ======
====Macに24.3のインストール====
Macの場合。
Linuxの時は、パッチも付けず、./configureのオプションを付けずにmake,make install
まず作業フォルダを作る
$ cd ~/Documents/
$ mkdir emacs
$ cd emacs
emacs-24.3のアーカイブのダウンロード
$ wget http://ftp.gnu.org/pub/gnu/emacs/emacs-24.3.tar.xz
$ tar xvfJ emacs-24.3.tar.xz
パッチをダウンロードして適用
$ cd emacs-24.3
$ wget https://gist.github.com/ganta/5139150/raw/8f6fc32747c40a51de597ce73085f56764a7d3ed/japanese-patch-for-emacs-24.3.patch
$ patch -p0 < japanese-patch-for-emacs-24.3.patch
-with-wide-int (バッファ制限を512MBから2GBに変更)と
make -j4(CPUコアを4コアとして)
のオプションつけてコンパイル
./configure --with-ns --without-x -with-wide-int && make -j4 && make
/Applicationsにコピー
$ cp -R nextstep/Emacs.app /Applications/Emacs.24.3.app
日本語の設定
デフォルトはAndale mono,日本語は[[http://mix-mplus-ipa.sourceforge.jp/migmix/|MigMix 1M]]を使うように
(defvar is-mac (or (eq window-system 'mac) (featurep 'ns)))
(set-language-environment 'utf-8)
(prefer-coding-system 'utf-8)
(set-default-coding-systems 'utf-8-unix)
(cond
(is-mac
(require 'ucs-normalize)
(setq file-name-coding-system 'utf-8-hfs)
(setq locale-coding-system 'utf-8-hfs)
)
(t
(setq file-name-coding-system 'utf-8)
(setq locale-coding-system 'utf-8)
)
)
(if window-system
(progn
(set-default-font "Andale Mono-10")
(set-fontset-font "fontset-default" 'japanese-jisx0208 '("MigMix 1M" . "unicode-bmp"))
))
サーバなどでLinuxなどにインストールする場合はパッチは使わず
-with-wide-int と make -j4のオプションも付けずに
makeのあとにmake installすればそのままいけました。 \\
設定ファイルもなんでかそのままで使いまわせました。
====Mac Lionにemacs23をインストールする時のめも====
$ sudo port install bzr
$ mkdir -p ~/emacs23/build
$ cd emacs23
$ bzr branch http://bzr.savannah.gnu.org/r/emacs/emacs-23
$ cd emacs-23
$ bzr export ../build
$ cd ../build
$ wget --no-check-certificate https://github.com/downloads/typester/emacs/emacs-23-lion-fullscreen-test.patch
$ patch -p1 < ./emacs-23-lion-fullscreen-test.patch
$ wget --no-check-certificate https://github.com/downloads/typester/emacs/fix-shiftmodifier-with-ime.patch
$ patch -p1 < ./fix-shiftmodifier-with-ime.patch
$ ./configure --with-ns
$ sudo make install