Mercurial > hgrepos > hgweb.cgi > yatex
annotate yatexhks.el @ 409:781604df4cbd dev
New variables: YaTeX-electric-indent-mode, yahtml-electric-indent-mode
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Wed, 11 Feb 2015 11:45:37 +0900 |
parents | 2a72779d9c50 |
children |
rev | line source |
---|---|
23 | 1 ;;; -*- Emacs-Lisp -*- |
2 ;;; Hooks for YaTeX | |
3 | |
66 | 4 ;;; 野鳥に関連する記述(たとえばアドイン関数)は yatexhks.el という名前の |
5 ;;; ファイルに入れてください。起動時に自動的にロードします。 | |
23 | 6 |
7 ;;; All the private definitions for YaTeX can be stuffed into the file | |
8 ;;; named `yatexhks.el'. The file `yatexhks.el' will be automatically | |
9 ;;; loaded at the end of loading `yatex.el'. | |
10 | |
58
3a7c0c2bf16d
Official support for AMS-LaTeX, HTML, xdvi -remote, Netscape
yuuji
parents:
54
diff
changeset
|
11 ;Private definitions begin from here. |
23 | 12 |
61 | 13 ;;97/1/27 |
14 (define-key YaTeX-user-extensional-map "v" 'YaTeX-section-overview) | |
15 ;;initial version | |
353
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
16 (let ((map YaTeX-user-extensional-map)) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
17 (define-key map "0" |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
18 (function (lambda () (interactive) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
19 (YaTeX-make-section nil nil nil "part")))) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
20 (define-key map "1" |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
21 (function (lambda () (interactive) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
22 (YaTeX-make-section nil nil nil "chapter")))) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
23 (define-key map "2" |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
24 (function (lambda () (interactive) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
25 (YaTeX-make-section nil nil nil "section")))) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
26 (define-key map "3" |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
27 (function (lambda () (interactive) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
28 (YaTeX-make-section nil nil nil "subsection")))) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
29 (define-key map "4" |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
30 (function (lambda () (interactive) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
31 (YaTeX-make-section nil nil nil "subsubsection")))) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
32 (define-key map "5" |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
33 (function (lambda () (interactive) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
34 (YaTeX-make-section nil nil nil "paragraph")))) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
35 (define-key map "6" |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
36 (function (lambda () (interactive) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
37 (YaTeX-make-section nil nil nil "subparagraph")))) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
38 (define-key map "r" |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
39 (function (lambda () (interactive) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
40 (YaTeX-make-section nil nil nil "ref")))) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
41 (define-key map "i" |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
42 (function (lambda () (interactive) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
43 (YaTeX-make-singlecmd "item")))) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
44 (define-key map "\C-b" |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
45 (function (lambda () (interactive) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
46 (YaTeX-make-singlecmd "leftarrow")))) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
47 (define-key map "l" |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
48 (function (lambda () (interactive) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
49 (YaTeX-make-section nil nil nil "label")))) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
50 (define-key map "f" |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
51 (function (lambda () (interactive) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
52 (YaTeX-make-section nil nil nil "frac")))) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
53 (define-key map "S" |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
54 (function (lambda () (interactive) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
55 (YaTeX-make-section nil nil nil "setlength")))) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
56 (define-key map "b" |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
57 (function (lambda () (interactive) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
58 (YaTeX-make-fontsize nil "bf")))) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
59 (define-key map "I" 'YaTeX-browse-info)) |
80 | 60 |
61 (defun YaTeX-browse-info () | |
353
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
62 "Browse YaTeX's info" |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
63 (interactive) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
64 (require 'info) |
2a72779d9c50
Rewrite lambda notations to suppress annoying warnings from emacs24
HIROSE Yuuji <yuuji@gentei.org>
parents:
80
diff
changeset
|
65 (Info-goto-node (if YaTeX-japan "(yatexj)Top" "(yatexe)Top"))) |
54 | 66 |
23 | 67 |
68 ; | |
69 ;;; End of yatexhks.el | |
70 (provide 'yatexhks) |