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

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

updated yatex

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
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
26 ;; YaTeX-kanji-code 4               ;; 1: SJIS, 2: JIS, 3: EUC, 4: UTF-8
27 ;; YaTeX-latex-message-code 'utf-8  ;; 文字化けしないようにする
28 ;; YaTeX-no-begend-shortcut t    ;; shortcut ではなく補完を利用
29 YaTeX-use-AMS-LaTeX t
30 YaTeX-use-LaTeX2e t
31 YaTeX-use-font-lock t
32 ;; dvi2-command "pxdvi"  ;; xdvi
33 ;; tex-command "platex -kanji=utf8 -src-specials"
34 ;; dviprint-command-format "dvips %s | lpr"
35 ;; makeindex-command "mendex -U"
36 ;; bibtex-command "pbibtex -kanji=utf8"
37 )
38
39;;; TeX-master に関しては safe にする
40;;; from AUCTeX tex.el
41(put 'TeX-master 'safe-local-variable
42     (lambda (x)
43       (or (stringp x)
44           (member x (quote (t nil shared dwim))))))
45
46;;; emacsclient サーバを起動
47(add-hook 'yatex-mode-hook
48          '(lambda () (server-start)))
49
50
51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
52
53(provide 'vine-default-yatex)
54
55;; Local Variables:
56;; mode: emacs-lisp
57;; End:
Note: See TracBrowser for help on using the repository browser.