aboutsummaryrefslogtreecommitdiffstats
path: root/print/yatex/files/yatex-startup.el.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'print/yatex/files/yatex-startup.el.tmpl')
-rw-r--r--print/yatex/files/yatex-startup.el.tmpl22
1 files changed, 18 insertions, 4 deletions
diff --git a/print/yatex/files/yatex-startup.el.tmpl b/print/yatex/files/yatex-startup.el.tmpl
index c5da8a6c56a8..44608202586d 100644
--- a/print/yatex/files/yatex-startup.el.tmpl
+++ b/print/yatex/files/yatex-startup.el.tmpl
@@ -20,10 +20,24 @@
;; (1=Shift JIS, 2=JIS, 3=EUC)
;(setq YaTeX-kanji-code 3)
;;
-;; For XEmacs, it is not supported that YaTeX originally color
-;; LaTeX commands (e.g. \section{foo}) by using hilit19
-;; so you had better uncomment the next line.
-;(put 'yatex-mode 'font-lock-defaults 'latex-mode)
+
+;; 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)
+; (setq YaTeX-use-font-lock t)
+ )))
+
;;
;;;;;;;; Yahtml (another html-mode) ;;;;;;
;(setq auto-mode-alist