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

Revision 2600, 2.0 KB checked in by munepi, 13 years ago (diff)

fixed vine-default-yatex.el

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;; 自動改行を無効
39(add-hook 'yatex-mode-hook
40          '(lambda () (setq auto-fill-function nil)))
41
42;;; TeX-master に関しては safe にする
43;;; from AUCTeX tex.el
44(put 'TeX-master 'safe-local-variable
45     (lambda (x)
46       (or (stringp x)
47           (member x (quote (t nil shared dwim))))))
48
49;;; emacsclient サーバを起動
50(add-hook 'yatex-mode-hook
51          '(lambda () (server-start)))
52
53
54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
55
56(provide 'vine-default-yatex)
57
58;; Local Variables:
59;; mode: emacs-lisp
60;; End:
Note: See TracBrowser for help on using the repository browser.