blob: 9c608f3b36c1e9b47f23e4c79bdac286cb3a3879 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
;; a startup elisp for YaTeX
;; -- S. Taoka <taoka@FreeBSD.org>
;;;;;;;;;;; %%TARGETNAME%% (Ver.%%VERSION%%) ;;;;;;;;;;;
(setq load-path (append (list
"%%ELISPDIR%%/yatex"
) load-path))
(setq auto-mode-alist
(cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist))
(autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t)
;;
;(setq tex-command "latex")
;(setq dvi2-command "xdvi -geo +0+0 -s 3")
;; If you use dvipsk as default, you should use the following three lines.
;(setq dviprint-from-format "-p %b")
;(setq dviprint-to-format "-l %b")
;(setq dviprint-command-format "dvips %f %t %s | lpr")
;; specifying a Kanji code for Mule
;; (1=Shift JIS, 2=JIS, 3=EUC)
;(setq YaTeX-kanji-code 3)
;;
;; To highlight buffer, LaTeX commands (e.g. \section{foo})
(if (featurep 'xemacs)
(progn
;;;;;; XEmacs 21 or later ;;;;;;
(setq YaTeX-use-font-lock t)
)
(if (string-match "19.34" emacs-version)
(progn
;;;;;; Emacs 19.34 ;;;;;
(setq YaTeX-use-hilit19 t)
)
(progn
;;;;;; Emacs 20 or later ;;;;;;
(setq YaTeX-use-hilit19 t)
; (add-hook 'yatex-mode-hook 'turn-on-font-lock)
; (setq YaTeX-use-font-lock t)
)))
;;
;;;;;;;; Yahtml (another html-mode) ;;;;;;
;(setq auto-mode-alist
; (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist))
;(autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t)
;; Write your favorite browser. But netscape is advantageous.
;(setq yahtml-www-browser "netscape")
;; Write correspondence alist from ABSOLUTE unix path name to URL path.
;(setq yahtml-path-url-alist
; '(("/home/yuuji/public_html" . "http://www.mynet/~yuuji")
; ("/home/staff/yuuji/html" . "http://www.othernet/~yuuji")))
(provide 'yatex-startup)
|