Mercurial > hgrepos > hgweb.cgi > yatex
annotate yatexm-o.el @ 299:d0c09133ced7 yatex-1.77
Rebuild info.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Mon, 01 Apr 2013 23:03:29 +0900 |
parents | 5921f28ef77c |
children | 2a72779d9c50 |
rev | line source |
---|---|
287 | 1 ;;; yatexm-o.el --- Sample to invoke yatex-mode with outline-minor mode |
2 | |
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] |
287 | 4 ;;; Last modified Sat Sep 1 08:12:40 2012 on firestorm |
10 | 5 |
287 | 6 ;;; Code: |
10 | 7 ;;; |
8 ;; outline-minor-mode(使用しない場合は不要です) | |
9 ;;; | |
10 (autoload 'outline-minor-mode "min-out" t) | |
11 (make-variable-buffer-local 'outline-prefix-char) | |
12 (make-variable-buffer-local 'outline-regexp) | |
13 (setq default-outline-regexp "[*\^l]+") | |
14 (make-variable-buffer-local 'outline-level-function) | |
15 (setq-default outline-level-function 'outline-level-default) | |
58
3a7c0c2bf16d
Official support for AMS-LaTeX, HTML, xdvi -remote, Netscape
yuuji
parents:
16
diff
changeset
|
16 (setq LaTeX-outline-regexp |
10 | 17 (concat "[ \t]*" (regexp-quote "\\") |
18 "\\(appendix\\|documentstyle\\|part\\|chapter\\|section\\|" | |
58
3a7c0c2bf16d
Official support for AMS-LaTeX, HTML, xdvi -remote, Netscape
yuuji
parents:
16
diff
changeset
|
19 "subsection\\|subsubsection\\|paragraph\\|subparagraph\\)" |
3a7c0c2bf16d
Official support for AMS-LaTeX, HTML, xdvi -remote, Netscape
yuuji
parents:
16
diff
changeset
|
20 "\\*?[ \t]*[[{]")) |
10 | 21 |
22 ;;; | |
23 ;; yatex-mode | |
24 ;;; | |
25 (setq auto-mode-alist (cons '("\\.tex$" . yatex-mode) auto-mode-alist)) | |
26 (autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t) | |
27 ;;↓min-outを使用しない場合、;;@ の行は不要です。 | |
28 (defvar yatex-mode-hook | |
29 '(lambda () | |
30 (setq outline-regexp LaTeX-outline-regexp) ;;@ | |
16
cb9afa9c1213
Auto-indentation at begin-type completion works correctly.
yuuji
parents:
13
diff
changeset
|
31 (outline-minor-mode 1) ;;@ |
cb9afa9c1213
Auto-indentation at begin-type completion works correctly.
yuuji
parents:
13
diff
changeset
|
32 )) |
10 | 33 (defvar yatex-mode-load-hook |
34 '(lambda () | |
35 (setq-default outline-prefix-char (concat YaTeX-prefix "\C-o"));;@ | |
36 (require 'min-out) ;;@ | |
58
3a7c0c2bf16d
Official support for AMS-LaTeX, HTML, xdvi -remote, Netscape
yuuji
parents:
16
diff
changeset
|
37 ;;auctex 付属の min-out.el の場合これ↓ |
3a7c0c2bf16d
Official support for AMS-LaTeX, HTML, xdvi -remote, Netscape
yuuji
parents:
16
diff
changeset
|
38 ;(define-key outline-minor-keymap "\C-?" 'hide-subtree) ;;@ |
3a7c0c2bf16d
Official support for AMS-LaTeX, HTML, xdvi -remote, Netscape
yuuji
parents:
16
diff
changeset
|
39 ;;Emacs 付属の outline.el の場合これ↓ |
3a7c0c2bf16d
Official support for AMS-LaTeX, HTML, xdvi -remote, Netscape
yuuji
parents:
16
diff
changeset
|
40 (define-key outline-mode-prefix-map "\C-?" 'hide-subtree) |
16
cb9afa9c1213
Auto-indentation at begin-type completion works correctly.
yuuji
parents:
13
diff
changeset
|
41 (YaTeX-define-begend-key "ba" "abstract") |
10 | 42 )) |