source: projects/specs/trunk/y/yatex/vine-default-yatex.el @ 5257

Revision 5257, 1.9 KB checked in by munepi, 12 years ago (diff)

updated yatex: TeX Live 2011

Line 
1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2;;  -*- coding: utf-8-unix -*-
3;;  FSF Emacs 23 用 Vine Linux YaTeX 設定
4;;    Munehiro Yamamoto <munepi@vinelinux.org>
5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
8;; YaTeX 1.74
9;;   [La]TeX 入力モード
10;;   M-x yatex とするか、.tex で終わるファイルを読み込むと起動します
11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
12
13(autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t)
14
15;; [推奨] \C-c から \C-c \C- へ変更 [yatex:04567]
16(unless (boundp 'YaTeX-inhibit-prefix-letter)
17    (setq YaTeX-inhibit-prefix-letter t))
18
19;; YaTeX-mode
20;; yatex-mode を起動させる設定
21(setq auto-mode-alist
22      (append
23       '(("\\.\\(tex\\|sty\\|cls\\|fd\\|ind\\|idx\\|ltx\\|clo\\|bbl\\)$" .
24          yatex-mode)) auto-mode-alist))
25(setq YaTeX-kanji-code 4               ;; 1: SJIS, 2: JIS, 3: EUC, 4: UTF-8
26      YaTeX-latex-message-code 'utf-8  ;; 文字化けしないようにする
27      ;; YaTeX-no-begend-shortcut t    ;; shortcut ではなく補完を利用
28      YaTeX-use-AMS-LaTeX t
29      YaTeX-use-LaTeX2e t
30      YaTeX-use-font-lock t
31      dvi2-command "pxdvi"  ;; xdvi
32      tex-command "platex -kanji=utf8 -src-specials"
33      dviprint-command-format "dvips %s | lpr"
34      makeindex-command "mendex -U"
35      bibtex-command "pbibtex -kanji=utf8"
36      )
37
38;;; TeX-master に関しては safe にする
39;;; from AUCTeX tex.el
40(put 'TeX-master 'safe-local-variable
41     (lambda (x)
42       (or (stringp x)
43           (member x (quote (t nil shared dwim))))))
44
45;;; emacsclient サーバを起動
46(add-hook 'yatex-mode-hook
47          '(lambda () (server-start)))
48
49
50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
51
52(provide 'vine-default-yatex)
53
54;; Local Variables:
55;; mode: emacs-lisp
56;; End:
Note: See TracBrowser for help on using the repository browser.