Mercurial > hgrepos > hgweb.cgi > yatex
annotate yatexm-o.el @ 81:dacfb49eec6e
1.73
author | yuuji |
---|---|
date | Sun, 24 Dec 2006 06:21:09 +0000 |
parents | 0734be649cb8 |
children | 5921f28ef77c |
rev | line source |
---|---|
10 | 1 ;;; -*- Emacs-Lisp -*- |
2 ;;; Sample startup file to invoke yatex-mode with outline-minor mode. | |
79
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
70
diff
changeset
|
3 ;;; (c)1993 by HIROSE Yuuji [yuuji@yatex.org] |
0734be649cb8
Do not care file-coding-system when YaTeX-kanji-code is nil.
yuuji
parents:
70
diff
changeset
|
4 ;;; Last modified Fri Jun 27 12:10:15 2003 on firestorm |
10 | 5 |
6 ;;; | |
7 ;; outline-minor-mode(使用しない場合は不要です) | |
8 ;;; | |
9 (autoload 'outline-minor-mode "min-out" t) | |
10 (make-variable-buffer-local 'outline-prefix-char) | |
11 (make-variable-buffer-local 'outline-regexp) | |
12 (setq default-outline-regexp "[*\^l]+") | |
13 (make-variable-buffer-local 'outline-level-function) | |
14 (setq-default outline-level-function 'outline-level-default) | |
58
3a7c0c2bf16d
Official support for AMS-LaTeX, HTML, xdvi -remote, Netscape
yuuji
parents:
16
diff
changeset
|
15 (setq LaTeX-outline-regexp |
10 | 16 (concat "[ \t]*" (regexp-quote "\\") |
17 "\\(appendix\\|documentstyle\\|part\\|chapter\\|section\\|" | |
58
3a7c0c2bf16d
Official support for AMS-LaTeX, HTML, xdvi -remote, Netscape
yuuji
parents:
16
diff
changeset
|
18 "subsection\\|subsubsection\\|paragraph\\|subparagraph\\)" |
3a7c0c2bf16d
Official support for AMS-LaTeX, HTML, xdvi -remote, Netscape
yuuji
parents:
16
diff
changeset
|
19 "\\*?[ \t]*[[{]")) |
10 | 20 |
21 ;;; | |
22 ;; yatex-mode | |
23 ;;; | |
24 (setq auto-mode-alist (cons '("\\.tex$" . yatex-mode) auto-mode-alist)) | |
25 (autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t) | |
26 ;;↓min-outを使用しない場合、;;@ の行は不要です。 | |
27 (defvar yatex-mode-hook | |
28 '(lambda () | |
29 (setq outline-regexp LaTeX-outline-regexp) ;;@ | |
16
cb9afa9c1213
Auto-indentation at begin-type completion works correctly.
yuuji
parents:
13
diff
changeset
|
30 (outline-minor-mode 1) ;;@ |
cb9afa9c1213
Auto-indentation at begin-type completion works correctly.
yuuji
parents:
13
diff
changeset
|
31 )) |
10 | 32 (defvar yatex-mode-load-hook |
33 '(lambda () | |
34 (setq-default outline-prefix-char (concat YaTeX-prefix "\C-o"));;@ | |
35 (require 'min-out) ;;@ | |
58
3a7c0c2bf16d
Official support for AMS-LaTeX, HTML, xdvi -remote, Netscape
yuuji
parents:
16
diff
changeset
|
36 ;;auctex 付属の min-out.el の場合これ↓ |
3a7c0c2bf16d
Official support for AMS-LaTeX, HTML, xdvi -remote, Netscape
yuuji
parents:
16
diff
changeset
|
37 ;(define-key outline-minor-keymap "\C-?" 'hide-subtree) ;;@ |
3a7c0c2bf16d
Official support for AMS-LaTeX, HTML, xdvi -remote, Netscape
yuuji
parents:
16
diff
changeset
|
38 ;;Emacs 付属の outline.el の場合これ↓ |
3a7c0c2bf16d
Official support for AMS-LaTeX, HTML, xdvi -remote, Netscape
yuuji
parents:
16
diff
changeset
|
39 (define-key outline-mode-prefix-map "\C-?" 'hide-subtree) |
16
cb9afa9c1213
Auto-indentation at begin-type completion works correctly.
yuuji
parents:
13
diff
changeset
|
40 (YaTeX-define-begend-key "ba" "abstract") |
10 | 41 )) |