diff options
| author | Gerd Moellmann | 2000-04-17 15:23:08 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-04-17 15:23:08 +0000 |
| commit | af9eaa5eb3608a1aed46cfd345434967b0210952 (patch) | |
| tree | e8f89da613e5d706b60d0f1d4ad8864904a24095 /lisp/textmodes | |
| parent | e10f64e713dd301056e7e8530d7cc37f5775db1a (diff) | |
| download | emacs-af9eaa5eb3608a1aed46cfd345434967b0210952.tar.gz emacs-af9eaa5eb3608a1aed46cfd345434967b0210952.zip | |
(texinfo-insert-@email)
(texinfo-insert-@emph, texinfo-insert-@quotation)
(texinfo-insert-@strong, texinfo-insert-@url): New functions.
(texinfo-mode-map): Add key bindings for them.
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/texinfo.el | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/lisp/textmodes/texinfo.el b/lisp/textmodes/texinfo.el index bf1a523ec0e..ce751e965ef 100644 --- a/lisp/textmodes/texinfo.el +++ b/lisp/textmodes/texinfo.el | |||
| @@ -387,12 +387,18 @@ chapter." | |||
| 387 | ;; bindings for inserting strings | 387 | ;; bindings for inserting strings |
| 388 | (define-key texinfo-mode-map "\C-c\C-o" 'texinfo-insert-block) | 388 | (define-key texinfo-mode-map "\C-c\C-o" 'texinfo-insert-block) |
| 389 | (define-key texinfo-mode-map "\C-c\C-c\C-d" 'texinfo-start-menu-description) | 389 | (define-key texinfo-mode-map "\C-c\C-c\C-d" 'texinfo-start-menu-description) |
| 390 | (define-key texinfo-mode-map "\C-c\C-c\C-s" 'texinfo-insert-@strong) | ||
| 391 | (define-key texinfo-mode-map "\C-c\C-c\C-e" 'texinfo-insert-@emph) | ||
| 390 | 392 | ||
| 391 | (define-key texinfo-mode-map "\C-c\C-cv" 'texinfo-insert-@var) | 393 | (define-key texinfo-mode-map "\C-c\C-cv" 'texinfo-insert-@var) |
| 394 | (define-key texinfo-mode-map "\C-c\C-cu" 'texinfo-insert-@url) | ||
| 392 | (define-key texinfo-mode-map "\C-c\C-ct" 'texinfo-insert-@table) | 395 | (define-key texinfo-mode-map "\C-c\C-ct" 'texinfo-insert-@table) |
| 393 | (define-key texinfo-mode-map "\C-c\C-cs" 'texinfo-insert-@samp) | 396 | (define-key texinfo-mode-map "\C-c\C-cs" 'texinfo-insert-@samp) |
| 397 | ;; (define-key texinfo-mode-map "\C-c\C-cr" 'texinfo-insert-@uref) | ||
| 398 | (define-key texinfo-mode-map "\C-c\C-cq" 'texinfo-insert-@quotation) | ||
| 394 | (define-key texinfo-mode-map "\C-c\C-co" 'texinfo-insert-@noindent) | 399 | (define-key texinfo-mode-map "\C-c\C-co" 'texinfo-insert-@noindent) |
| 395 | (define-key texinfo-mode-map "\C-c\C-cn" 'texinfo-insert-@node) | 400 | (define-key texinfo-mode-map "\C-c\C-cn" 'texinfo-insert-@node) |
| 401 | (define-key texinfo-mode-map "\C-c\C-cm" 'texinfo-insert-@email) | ||
| 396 | (define-key texinfo-mode-map "\C-c\C-ck" 'texinfo-insert-@kbd) | 402 | (define-key texinfo-mode-map "\C-c\C-ck" 'texinfo-insert-@kbd) |
| 397 | (define-key texinfo-mode-map "\C-c\C-ci" 'texinfo-insert-@item) | 403 | (define-key texinfo-mode-map "\C-c\C-ci" 'texinfo-insert-@item) |
| 398 | (define-key texinfo-mode-map "\C-c\C-cf" 'texinfo-insert-@file) | 404 | (define-key texinfo-mode-map "\C-c\C-cf" 'texinfo-insert-@file) |
| @@ -661,6 +667,20 @@ The default is not to surround any existing words with the braces." | |||
| 661 | (interactive "P") | 667 | (interactive "P") |
| 662 | (texinfo-insert-@-with-arg "dfn" arg)) | 668 | (texinfo-insert-@-with-arg "dfn" arg)) |
| 663 | 669 | ||
| 670 | (defun texinfo-insert-@email (&optional arg) | ||
| 671 | "Insert a `@email{...}' command in a Texinfo buffer. | ||
| 672 | A numeric argument says how many words the braces should surround. | ||
| 673 | The default is not to surround any existing words with the braces." | ||
| 674 | (interactive "P") | ||
| 675 | (texinfo-insert-@-with-arg "email" arg)) | ||
| 676 | |||
| 677 | (defun texinfo-insert-@emph (&optional arg) | ||
| 678 | "Insert a `@emph{...}' command in a Texinfo buffer. | ||
| 679 | A numeric argument says how many words the braces should surround. | ||
| 680 | The default is not to surround any existing words with the braces." | ||
| 681 | (interactive "P") | ||
| 682 | (texinfo-insert-@-with-arg "emph" arg)) | ||
| 683 | |||
| 664 | (defun texinfo-insert-@example () | 684 | (defun texinfo-insert-@example () |
| 665 | "Insert the string `@example' in a Texinfo buffer." | 685 | "Insert the string `@example' in a Texinfo buffer." |
| 666 | (interactive) | 686 | (interactive) |
| @@ -700,6 +720,11 @@ the order of arguments to @node." | |||
| 700 | (interactive) | 720 | (interactive) |
| 701 | (insert "@noindent\n")) | 721 | (insert "@noindent\n")) |
| 702 | 722 | ||
| 723 | (defun texinfo-insert-@quotation () | ||
| 724 | "Insert the string `@quotation' in a Texinfo buffer." | ||
| 725 | (interactive) | ||
| 726 | (insert "@quotation\n")) | ||
| 727 | |||
| 703 | (defun texinfo-insert-@samp (&optional arg) | 728 | (defun texinfo-insert-@samp (&optional arg) |
| 704 | "Insert a `@samp{...}' command in a Texinfo buffer. | 729 | "Insert a `@samp{...}' command in a Texinfo buffer. |
| 705 | A numeric argument says how many words the braces should surround. | 730 | A numeric argument says how many words the braces should surround. |
| @@ -707,6 +732,13 @@ The default is not to surround any existing words with the braces." | |||
| 707 | (interactive "P") | 732 | (interactive "P") |
| 708 | (texinfo-insert-@-with-arg "samp" arg)) | 733 | (texinfo-insert-@-with-arg "samp" arg)) |
| 709 | 734 | ||
| 735 | (defun texinfo-insert-@strong (&optional arg) | ||
| 736 | "Insert a `@strong{...}' command in a Texinfo buffer. | ||
| 737 | A numeric argument says how many words the braces should surround. | ||
| 738 | The default is not to surround any existing words with the braces." | ||
| 739 | (interactive "P") | ||
| 740 | (texinfo-insert-@-with-arg "strong" arg)) | ||
| 741 | |||
| 710 | (defun texinfo-insert-@table (&optional arg) | 742 | (defun texinfo-insert-@table (&optional arg) |
| 711 | "Insert the string `@table' in a Texinfo buffer." | 743 | "Insert the string `@table' in a Texinfo buffer." |
| 712 | (interactive "P") | 744 | (interactive "P") |
| @@ -718,6 +750,13 @@ A numeric argument says how many words the braces should surround. | |||
| 718 | The default is not to surround any existing words with the braces." | 750 | The default is not to surround any existing words with the braces." |
| 719 | (interactive "P") | 751 | (interactive "P") |
| 720 | (texinfo-insert-@-with-arg "var" arg)) | 752 | (texinfo-insert-@-with-arg "var" arg)) |
| 753 | |||
| 754 | (defun texinfo-insert-@url (&optional arg) | ||
| 755 | "Insert a `@url{}' command in a Texinfo buffer. | ||
| 756 | A numeric argument says how many words the braces should surround. | ||
| 757 | The default is not to surround any existing words with the braces." | ||
| 758 | (interactive "P") | ||
| 759 | (texinfo-insert-@-with-arg "url" arg)) | ||
| 721 | 760 | ||
| 722 | ;;; Texinfo file structure | 761 | ;;; Texinfo file structure |
| 723 | 762 | ||