Get the incredible hacking tool. (Emacs 23.2.90 + Mac port patch)
Terminal.appで,
mkdir work && cd work wget ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-23.2.90.tar.gz wget ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-23.2.90-mac-1.998.tar.gz tar xzf emacs-23.2.90.tar.gz tar xzf emacs-23.2.90-mac-1.998.tar.gz cd emacs-23.2.90 patch -p 0 <../emacs-23.2.90-mac-1.998/patch-mac cp -r ../emacs-23.2.90-mac-1.998/mac mac cp ../emacs-23.2.90-mac-1.998/src/* src cp ../emacs-23.2.90-mac-1.998/lisp/term/mac-win.el lisp/term cp nextstep/Cocoa/Emacs.base/Contents/Resources/Emacs.icns mac/Emacs.app/Contents/Resources ./configure --with-mac --without-x nice make -j `sysctl -n hw.availcpu` sudo make install
.
Then,
open mac/Emacs.app
.
フォントを揃えるには,
(when (and (eq window-system 'mac) (>= emacs-major-version 23)) (create-fontset-from-ascii-font "Menlo-12:weight=normal:slant=normal" nil "menlokakugo") (set-fontset-font "fontset-menlokakugo" 'unicode (font-spec :family "Hiragino Kaku Gothic ProN" :size 12) nil 'append) (add-to-list 'default-frame-alist '(font . "fontset-menlokakugo")) (set-fontset-font (frame-parameter nil 'font) 'japanese-jisx0208 '("Hiragino Kaku Gothic ProN" . "iso10646-1")) (set-fontset-font (frame-parameter nil 'font) 'japanese-jisx0212 '("Hiragino Kaku Gothic ProN" . "iso10646-1")) (set-fontset-font (frame-parameter nil 'font) 'mule-unicode-0100-24ff '("menlo" . "iso10646-1")) (setq face-font-rescale-alist '((".*Hiragino.*" . 1.2) (".*Menlo.*" . 1.0))))
.
Mac port patchを使うならフルスクリーンの快適さを一度でも味わっておきたい.
フルスクリーンコマンド:
(defun toggle-fullscreen () (interactive) (if (frame-parameter nil 'fullscreen) (set-frame-parameter nil 'fullscreen nil) (set-frame-parameter nil 'fullscreen 'fullboth)))
.
古い emacs (22等) で wheel scroll 関連を弄っている人は,一度コメントアウトして挙動を確認してみて欲しい.多くの人は Mac port patch のスクロールの挙動を気に入ると思う.
また,23.2の emacs news を
view-emacs-news
で見て,新たに本体に取り込まれたモジュールを確認し,
list-load-path-shadows
で意図しない shadowing がないかを確認しておくとトラブル除けになる.