2014年4月29日火曜日

Windows 7 に Emacs 24.3 をインストール

長らく Emacs 23.3 を使っていましたが、Ubuntu 14.04 で Emacs 24.3 が標準になったことを期にすべての環境で Emacs 24.3 へ移行することにしました。

インストール

http://ftp.gnu.org/gnu/emacs/windows/ から emacs-24.3-bin-i386.zip をダウンロードします。展開して C:\usr\local\emacs-24.3 に置きました。
 

全般

(blink-cursor-mode nil) だとカーソルが点滅するようになったので -1 に変更しました。
(blink-cursor-mode -1)

windows.el

screen-width が frame-width に変更されたので別名として定義しました。
(fset 'screen-width #'frame-width)

last-command-char が last-command-event に変更されたので別名として定義しました。
(defvaralias 'last-command-char 'last-command-event)

送る

emacsclientw.exe のショートカットを %APPDATA%\Microsoft\Windows\SendTo に作成します。ショートカットのプロパティでリンク先に --alternate-editor を追加します。

C:\usr\local\emacs-24.3\bin\emacsclientw.exe --alternate-editor C:\usr\local\emacs-24.3\bin\runemacs.exe