vine-default-yatex.el 2.1 KB

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