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

Revision 3080, 1.9 KB checked in by munepi, 13 years ago (diff)

updated yatex-vl.spec

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 t から \C-c \C-t へ変更 [yatex:04567]
16(setq YaTeX-inhibit-prefix-letter t)
17
18;; YaTeX-mode
19;; yatex-mode を起動させる設定
20;; (setq auto-mode-alist
21;;       (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist))
22(setq auto-mode-alist
23      (append
24       '(("\\.\\(tex\\|sty\\|cls\\|fd\\|ind\\|idx\\|ltx\\|clo\\|bbl\\)$" .
25          yatex-mode)) auto-mode-alist))
26(setq 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 "eplatex -kanji=utf8 -src-specials"
34      dviprint-command-format "pdvips %s | lpr"  ;; dvips
35      makeindex-command "mendex"
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.