Cocoa EmacsにYaTeXを導入する。
mac(snow leopard)にyatex.elを導入したときの覚え書きです。
インストール
http://www.yatex.org/から,やてふの最新版をとってきて解凍します。
今回は解凍してできたディレクトリーにyatexという名前を付けて、
~/.emacs.d/yatex に設置しました。
emacsの設定
~/.emacs.d/init.elに次を追加します。
;; yatex-modeに関する設定 (setq auto-mode-alist (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist)) (autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t) (setq load-path (cons (expand-file-name "~/.emacs.d/yatex") load-path)) (setq tex-command "~/org/mypdflatex") (setq dvi2-command "open")
emacsを再起動して、拡張子.texのファイルを開いた時にやてふモードになっていれば終了です。
本当はバイトコンパイルもした方がいんだろうけど面倒なので今回はパス。