12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; -*- coding: utf-8-unix -*-
- ;; FSF Emacs 23 用 Vine Linux YaTeX 設定
- ;; Munehiro Yamamoto <munepi@vinelinux.org>
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; YaTeX 1.73
- ;; [La]TeX 入力モード
- ;; M-x yatex とするか、.tex で終わるファイルを読み込むと起動します
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- (autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t)
- ;; YaTeX-mode
- ;; yatex-mode を起動させる設定
- ;; (setq auto-mode-alist
- ;; (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist))
- (setq auto-mode-alist
- (append
- '(("\\.\\(tex\\|sty\\|cls\\|fd\\|ind\\|idx\\|ltx\\|clo\\|bbl\\)$" .
- yatex-mode)) auto-mode-alist))
- (setq YaTeX-kanji-code 4 ; 1: SJIS, 2: JIS, 3: EUC, 4: UTF-8
- YaTeX-latex-message-code 'utf-8 ; 文字化けしないようにする
- ;;YaTeX-no-begend-shortcut t ; shortcut ではなく補完を利用
- YaTeX-use-AMS-LaTeX t
- YaTeX-use-LaTeX2e t
- YaTeX-use-font-lock t
- dvi2-command "xdvi"
- tex-command "platex -kanji=utf8 -src-specials"
- dviprint-command-format "dvips %s | lpr"
- makeindex-command "mendex"
- )
- ;; 自動改行を無効
- (add-hook 'yatex-mode-hook
- '(lambda () (setq auto-fill-function nil)))
- (add-hook 'yahtml-mode-hook
- '(lambda () (setq auto-fill-function nil)))
- ;;; TeX-master に関しては safe にする
- ;;; from AUCTeX tex.el
- (put 'TeX-master 'safe-local-variable
- (lambda (x)
- (or (stringp x)
- (member x (quote (t nil shared dwim))))))
- ;;; emacsclient サーバを起動
- (add-hook 'yatex-mode-hook
- '(lambda () (server-start)))
- ;; YaHtml-mode
- (setq auto-mode-alist
- (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist))
- (autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t)
- (setq yahtml-www-browser "firefox")
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- (provide 'vine-default-yatex)
- ;; Local Variables:
- ;; mode: emacs-lisp
- ;; End:
|