vine-default-yatex.el 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;; -*- coding: utf-8-unix -*-
  3. ;; FSF Emacs 23 用 Vine Linux YaTeX 設定
  4. ;; Munehiro Yamamoto <munepi@vinelinux.org>
  5. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  6. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  7. ;; YaTeX 1.74
  8. ;; [La]TeX 入力モード
  9. ;; M-x yatex とするか、.tex で終わるファイルを読み込むと起動します
  10. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  11. (autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t)
  12. ;; [推奨] \C-c t から \C-c \C-t へ変更 [yatex:04567]
  13. (setq YaTeX-inhibit-prefix-letter t)
  14. ;; YaTeX-mode
  15. ;; yatex-mode を起動させる設定
  16. ;; (setq auto-mode-alist
  17. ;; (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist))
  18. (setq auto-mode-alist
  19. (append
  20. '(("\\.\\(tex\\|sty\\|cls\\|fd\\|ind\\|idx\\|ltx\\|clo\\|bbl\\)$" .
  21. yatex-mode)) auto-mode-alist))
  22. (setq YaTeX-kanji-code 4 ;; 1: SJIS, 2: JIS, 3: EUC, 4: UTF-8
  23. YaTeX-latex-message-code 'utf-8 ;; 文字化けしないようにする
  24. ;; YaTeX-no-begend-shortcut t ;; shortcut ではなく補完を利用
  25. YaTeX-use-AMS-LaTeX t
  26. YaTeX-use-LaTeX2e t
  27. YaTeX-use-font-lock t
  28. dvi2-command "pxdvi" ;; xdvi
  29. tex-command "eplatex -kanji=utf8 -src-specials"
  30. dviprint-command-format "pdvips %s | lpr" ;; dvips
  31. makeindex-command "mendex"
  32. )
  33. ;;; TeX-master に関しては safe にする
  34. ;;; from AUCTeX tex.el
  35. (put 'TeX-master 'safe-local-variable
  36. (lambda (x)
  37. (or (stringp x)
  38. (member x (quote (t nil shared dwim))))))
  39. ;;; emacsclient サーバを起動
  40. (add-hook 'yatex-mode-hook
  41. '(lambda () (server-start)))
  42. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  43. (provide 'vine-default-yatex)
  44. ;; Local Variables:
  45. ;; mode: emacs-lisp
  46. ;; End: