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

Revision 2443, 2.1 KB checked in by munepi, 13 years ago (diff)

updated emacs24, yatex, FD spec files

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.73
9;;   [La]TeX 入力モード
10;;   M-x yatex とするか、.tex で終わるファイルを読み込むと起動します
11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
12
13(autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t)
14
15;; YaTeX-mode
16;; yatex-mode を起動させる設定
17;; (setq auto-mode-alist
18;;       (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist))
19(setq auto-mode-alist
20      (append
21       '(("\\.\\(tex\\|sty\\|cls\\|fd\\|ind\\|idx\\|ltx\\|clo\\|bbl\\)$" .
22          yatex-mode)) auto-mode-alist))
23(setq YaTeX-kanji-code 4               ; 1: SJIS, 2: JIS, 3: EUC, 4: UTF-8
24      YaTeX-latex-message-code 'utf-8  ; 文字化けしないようにする
25      ;;YaTeX-no-begend-shortcut t       ; shortcut ではなく補完を利用
26      YaTeX-use-AMS-LaTeX t
27      YaTeX-use-LaTeX2e t
28      YaTeX-use-font-lock t
29      dvi2-command "xdvi"
30      tex-command "platex -kanji=utf8 -src-specials"
31      dviprint-command-format "dvips %s | lpr"
32      makeindex-command "mendex"
33)
34
35;; 自動改行を無効
36(add-hook 'yatex-mode-hook
37          '(lambda () (setq auto-fill-function nil)))
38(add-hook 'yahtml-mode-hook
39          '(lambda () (setq auto-fill-function nil)))
40
41;;; TeX-master に関しては safe にする
42;;; from AUCTeX tex.el
43(put 'TeX-master 'safe-local-variable
44     (lambda (x)
45       (or (stringp x)
46           (member x (quote (t nil shared dwim))))))
47
48;;; emacsclient サーバを起動
49(add-hook 'yatex-mode-hook
50          '(lambda () (server-start)))
51
52;; YaHtml-mode
53(setq auto-mode-alist
54      (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist))
55(autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t)
56(setq yahtml-www-browser "firefox")
57
58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
59
60(provide 'vine-default-yatex)
61
62;; Local Variables:
63;; mode: emacs-lisp
64;; End:
Note: See TracBrowser for help on using the repository browser.