diff options
| author | Stephen Eglen | 1998-02-22 17:34:42 +0000 |
|---|---|---|
| committer | Stephen Eglen | 1998-02-22 17:34:42 +0000 |
| commit | d1ebc62e6ca3ab4d6f714326ed8ae2c626d30bf1 (patch) | |
| tree | 3d57efac375e8ff39a313e107d21bcd112a148a4 | |
| parent | ceb7e4f8e7946d6225f82d497cc46a05f4b49340 (diff) | |
| download | emacs-d1ebc62e6ca3ab4d6f714326ed8ae2c626d30bf1.tar.gz emacs-d1ebc62e6ca3ab4d6f714326ed8ae2c626d30bf1.zip | |
Customized.
| -rw-r--r-- | lisp/textmodes/bib-mode.el | 22 | ||||
| -rw-r--r-- | lisp/textmodes/picture.el | 56 | ||||
| -rw-r--r-- | lisp/textmodes/refbib.el | 85 | ||||
| -rw-r--r-- | lisp/textmodes/refer.el | 35 | ||||
| -rw-r--r-- | lisp/textmodes/scribe.el | 23 | ||||
| -rw-r--r-- | lisp/textmodes/spell.el | 17 |
6 files changed, 165 insertions, 73 deletions
diff --git a/lisp/textmodes/bib-mode.el b/lisp/textmodes/bib-mode.el index 42de7459ee0..9ccbd517ea0 100644 --- a/lisp/textmodes/bib-mode.el +++ b/lisp/textmodes/bib-mode.el | |||
| @@ -30,12 +30,20 @@ | |||
| 30 | ;; and appropriate keys are presented for various kinds of entries. | 30 | ;; and appropriate keys are presented for various kinds of entries. |
| 31 | 31 | ||
| 32 | ;;; Code: | 32 | ;;; Code: |
| 33 | (defgroup bib nil | ||
| 34 | "Major mode for editing bib files." | ||
| 35 | :prefix "bib-" | ||
| 36 | :group 'wp) | ||
| 33 | 37 | ||
| 34 | (defvar bib-file "~/my-bibliography.bib" | 38 | (defcustom bib-file "~/my-bibliography.bib" |
| 35 | "Default name of file used by `addbib'.") | 39 | "Default name of file used by `addbib'." |
| 40 | :type 'file | ||
| 41 | :group 'bib) | ||
| 36 | 42 | ||
| 37 | (defvar unread-bib-file "~/to-be-read.bib" | 43 | (defcustom unread-bib-file "~/to-be-read.bib" |
| 38 | "Default name of file used by `unread-bib' in Bib mode.") | 44 | "Default name of file used by `unread-bib' in Bib mode." |
| 45 | :type 'file | ||
| 46 | :group 'bib) | ||
| 39 | 47 | ||
| 40 | (defvar bib-mode-map (copy-keymap text-mode-map)) | 48 | (defvar bib-mode-map (copy-keymap text-mode-map)) |
| 41 | (define-key bib-mode-map "\C-M" 'return-key-bib) | 49 | (define-key bib-mode-map "\C-M" 'return-key-bib) |
| @@ -137,8 +145,10 @@ the car of an entry is followed by one beginning with the cdr. | |||
| 137 | )) | 145 | )) |
| 138 | 146 | ||
| 139 | 147 | ||
| 140 | (defvar bib-auto-capitalize t | 148 | (defcustom bib-auto-capitalize t |
| 141 | "*True to automatically capitalize appropriate fields in Bib mode.") | 149 | "*True to automatically capitalize appropriate fields in Bib mode." |
| 150 | :type 'boolean | ||
| 151 | :group 'bib) | ||
| 142 | 152 | ||
| 143 | (defconst bib-capitalized-fields "%[AETCBIJR]") | 153 | (defconst bib-capitalized-fields "%[AETCBIJR]") |
| 144 | 154 | ||
diff --git a/lisp/textmodes/picture.el b/lisp/textmodes/picture.el index 2b836069294..5292eb98747 100644 --- a/lisp/textmodes/picture.el +++ b/lisp/textmodes/picture.el | |||
| @@ -31,18 +31,36 @@ | |||
| 31 | 31 | ||
| 32 | ;;; Code: | 32 | ;;; Code: |
| 33 | 33 | ||
| 34 | (defvar picture-rectangle-ctl ?+ | 34 | (defgroup picture nil |
| 35 | "*Character picture-draw-rectangle uses for top left corners.") | 35 | "Picture mode --- editing using quarter-plane screen model." |
| 36 | (defvar picture-rectangle-ctr ?+ | 36 | :prefix "picture-" |
| 37 | "*Character picture-draw-rectangle uses for top right corners.") | 37 | :group 'editing) |
| 38 | (defvar picture-rectangle-cbr ?+ | 38 | |
| 39 | "*Character picture-draw-rectangle uses for bottom right corners.") | 39 | (defcustom picture-rectangle-ctl ?+ |
| 40 | (defvar picture-rectangle-cbl ?+ | 40 | "*Character `picture-draw-rectangle' uses for top left corners." |
| 41 | "*Character picture-draw-rectangle uses for bottom left corners.") | 41 | :type 'character |
| 42 | (defvar picture-rectangle-v ?| | 42 | :group 'picture) |
| 43 | "*Character picture-draw-rectangle uses for vertical lines.") | 43 | (defcustom picture-rectangle-ctr ?+ |
| 44 | (defvar picture-rectangle-h ?- | 44 | "*Character `picture-draw-rectangle' uses for top right corners." |
| 45 | "*Character picture-draw-rectangle uses for horizontal lines.") | 45 | :type 'character |
| 46 | :group 'picture) | ||
| 47 | (defcustom picture-rectangle-cbr ?+ | ||
| 48 | "*Character `picture-draw-rectangle' uses for bottom right corners." | ||
| 49 | :type 'character | ||
| 50 | :group 'picture) | ||
| 51 | (defcustom picture-rectangle-cbl ?+ | ||
| 52 | "*Character `picture-draw-rectangle' uses for bottom left corners." | ||
| 53 | :type 'character | ||
| 54 | :group 'picture) | ||
| 55 | (defcustom picture-rectangle-v ?| | ||
| 56 | "*Character `picture-draw-rectangle' uses for vertical lines." | ||
| 57 | :type 'character | ||
| 58 | :group 'picture) | ||
| 59 | (defcustom picture-rectangle-h ?- | ||
| 60 | "*Character `picture-draw-rectangle' uses for horizontal lines." | ||
| 61 | :type 'character | ||
| 62 | :group 'picture) | ||
| 63 | |||
| 46 | 64 | ||
| 47 | ;; Picture Movement Commands | 65 | ;; Picture Movement Commands |
| 48 | 66 | ||
| @@ -290,8 +308,8 @@ With positive argument insert that many lines." | |||
| 290 | 308 | ||
| 291 | ;; Picture Tabs | 309 | ;; Picture Tabs |
| 292 | 310 | ||
| 293 | (defvar picture-tab-chars "!-~" | 311 | (defcustom picture-tab-chars "!-~" |
| 294 | "*A character set which controls behavior of commands | 312 | "*A character set which controls behavior of commands. |
| 295 | \\[picture-set-tab-stops] and \\[picture-tab-search]. It is NOT a | 313 | \\[picture-set-tab-stops] and \\[picture-tab-search]. It is NOT a |
| 296 | regular expression, any regexp special characters will be quoted. | 314 | regular expression, any regexp special characters will be quoted. |
| 297 | It defines a set of \"interesting characters\" to look for when setting | 315 | It defines a set of \"interesting characters\" to look for when setting |
| @@ -313,7 +331,9 @@ letters `A' through `Z' and the character `-'). If you want the | |||
| 313 | character `\\' in the set it must be preceded by itself: \"\\\\\". | 331 | character `\\' in the set it must be preceded by itself: \"\\\\\". |
| 314 | 332 | ||
| 315 | The command \\[picture-tab-search] is defined to move beneath (or to) a | 333 | The command \\[picture-tab-search] is defined to move beneath (or to) a |
| 316 | character belonging to this set independent of the tab stops list.") | 334 | character belonging to this set independent of the tab stops list." |
| 335 | :type 'string | ||
| 336 | :group 'picture) | ||
| 317 | 337 | ||
| 318 | (defun picture-set-tab-stops (&optional arg) | 338 | (defun picture-set-tab-stops (&optional arg) |
| 319 | "Set value of `tab-stop-list' according to context of this line. | 339 | "Set value of `tab-stop-list' according to context of this line. |
| @@ -561,9 +581,11 @@ Leaves the region surrounding the rectangle." | |||
| 561 | (define-key picture-mode-map "\C-c/" 'picture-movement-sw) | 581 | (define-key picture-mode-map "\C-c/" 'picture-movement-sw) |
| 562 | (define-key picture-mode-map "\C-c\\" 'picture-movement-se))) | 582 | (define-key picture-mode-map "\C-c\\" 'picture-movement-se))) |
| 563 | 583 | ||
| 564 | (defvar picture-mode-hook nil | 584 | (defcustom picture-mode-hook nil |
| 565 | "If non-nil, its value is called on entry to Picture mode. | 585 | "If non-nil, its value is called on entry to Picture mode. |
| 566 | Picture mode is invoked by the command \\[picture-mode].") | 586 | Picture mode is invoked by the command \\[picture-mode]." |
| 587 | :type 'hook | ||
| 588 | :group 'picture) | ||
| 567 | 589 | ||
| 568 | (defvar picture-mode-old-local-map) | 590 | (defvar picture-mode-old-local-map) |
| 569 | (defvar picture-mode-old-mode-name) | 591 | (defvar picture-mode-old-mode-name) |
diff --git a/lisp/textmodes/refbib.el b/lisp/textmodes/refbib.el index ec3039e578d..a2a820002c1 100644 --- a/lisp/textmodes/refbib.el +++ b/lisp/textmodes/refbib.el | |||
| @@ -59,12 +59,20 @@ | |||
| 59 | ;********************************************************** | 59 | ;********************************************************** |
| 60 | ; User Parameters | 60 | ; User Parameters |
| 61 | 61 | ||
| 62 | (defvar r2b-trace-on nil "*trace conversion") | 62 | (defgroup refbib nil |
| 63 | 63 | "Convert refer-style references to ones usable by Latex bib." | |
| 64 | (defvar r2b-journal-abbrevs | 64 | :prefix "r2b-" |
| 65 | '( | 65 | :group 'wp) |
| 66 | ) | 66 | |
| 67 | " Abbreviation list for journal names. | 67 | (defcustom r2b-trace-on nil |
| 68 | "*Non-nil means trace conversion." | ||
| 69 | :type 'boolean | ||
| 70 | :group 'refbib) | ||
| 71 | |||
| 72 | (defcustom r2b-journal-abbrevs | ||
| 73 | '( | ||
| 74 | ) | ||
| 75 | "Abbreviation list for journal names. | ||
| 68 | If the car of an element matches a journal name exactly, it is replaced by | 76 | If the car of an element matches a journal name exactly, it is replaced by |
| 69 | the cadr when output. Braces must be included if replacement is a | 77 | the cadr when output. Braces must be included if replacement is a |
| 70 | {string}, but not if replacement is a bibtex abbreviation. The cadr | 78 | {string}, but not if replacement is a bibtex abbreviation. The cadr |
| @@ -75,26 +83,31 @@ letter, even if it really doesn't. | |||
| 75 | For example, a value of '((\"Aij\" \"{Artificial Intelligence}\") | 83 | For example, a value of '((\"Aij\" \"{Artificial Intelligence}\") |
| 76 | \(\"Ijcai81\" \"ijcai7\")) would expand Aij to the text string | 84 | \(\"Ijcai81\" \"ijcai7\")) would expand Aij to the text string |
| 77 | \"Artificial Intelligence\", but would replace Ijcai81 with the | 85 | \"Artificial Intelligence\", but would replace Ijcai81 with the |
| 78 | BibTeX macro \"ijcai7\".") | 86 | BibTeX macro \"ijcai7\"." |
| 79 | 87 | :type '(repeat (list string string)) | |
| 80 | (defvar r2b-booktitle-abbrevs | 88 | :group 'refbib) |
| 81 | '( | 89 | |
| 82 | ) | 90 | (defcustom r2b-booktitle-abbrevs |
| 83 | " Abbreviation list for book and proceedings names. If the car of | 91 | '( |
| 84 | an element matches a title or booktitle exactly, it is replaced by | 92 | ) |
| 85 | the cadr when output. Braces must be included if replacement is | 93 | "Abbreviation list for book and proceedings names. |
| 86 | a {string}, but not if replacement is a bibtex abbreviation. The cadr | 94 | If the car of an element matches a title or booktitle exactly, it is |
| 87 | may be eliminated if is exactly the same as the car. | 95 | replaced by the cadr when output. Braces must be included if |
| 96 | replacement is a {string}, but not if replacement is a bibtex | ||
| 97 | abbreviation. The cadr may be eliminated if is exactly the same as | ||
| 98 | the car. | ||
| 88 | Because titles are capitalized before matching, the abbreviated title | 99 | Because titles are capitalized before matching, the abbreviated title |
| 89 | should be listed as beginning with a capital letter, even if it doesn't. | 100 | should be listed as beginning with a capital letter, even if it doesn't. |
| 90 | For example, a value of '((\"Aij\" \"{Artificial Intelligence}\") | 101 | For example, a value of '((\"Aij\" \"{Artificial Intelligence}\") |
| 91 | \(\"Ijcai81\" \"ijcai7\")) would expand Aij to the text string | 102 | \(\"Ijcai81\" \"ijcai7\")) would expand Aij to the text string |
| 92 | \"Artificial Intelligence\", but would replace Ijcai81 with the | 103 | \"Artificial Intelligence\", but would replace Ijcai81 with the |
| 93 | BibTeX macro \"ijcai7\".") | 104 | BibTeX macro \"ijcai7\"." |
| 105 | :type '(repeat (list string string)) | ||
| 106 | :group 'refbib) | ||
| 94 | 107 | ||
| 95 | (defvar r2b-proceedings-list | 108 | (defcustom r2b-proceedings-list |
| 96 | '() | 109 | '() |
| 97 | " Assoc list of books or journals which are really conference proceedings, | 110 | "Assoc list of books or journals which are really conference proceedings, |
| 98 | but whose name and whose abbrev expansion (as defined in `r2b-journal-abbrevs' | 111 | but whose name and whose abbrev expansion (as defined in `r2b-journal-abbrevs' |
| 99 | and `r2b-booktitle-abbrevs') does not contain the words \"conference\" or | 112 | and `r2b-booktitle-abbrevs') does not contain the words \"conference\" or |
| 100 | \"proceedings\". (Those cases are handled automatically.) | 113 | \"proceedings\". (Those cases are handled automatically.) |
| @@ -106,16 +119,19 @@ a conference, and its expansion is the BibTeX macro \"ijcai7\". Then | |||
| 106 | `r2b-proceedings-list' should be '((\"Ijcai81\") ...). If instead its | 119 | `r2b-proceedings-list' should be '((\"Ijcai81\") ...). If instead its |
| 107 | expansion were \"Proceedings of the Seventh International Conference | 120 | expansion were \"Proceedings of the Seventh International Conference |
| 108 | on Artificial Intelligence\", then you would NOT need to include Ijcai81 | 121 | on Artificial Intelligence\", then you would NOT need to include Ijcai81 |
| 109 | in `r2b-proceedings-list' (although it wouldn't cause an error).") | 122 | in `r2b-proceedings-list' (although it wouldn't cause an error)." |
| 123 | :type '(repeat (list string string)) | ||
| 124 | :group 'refbib) | ||
| 110 | 125 | ||
| 111 | (defvar r2b-additional-stop-words | 126 | (defvar r2b-additional-stop-words |
| 112 | "Some\\|What" | 127 | "Some\\|What" |
| 113 | "Words not to be used to build the citation key. | 128 | "Words not to be used to build the citation key. |
| 114 | This is in addition to the `r2b-capitalize-title-stop-words'.") | 129 | This is in addition to the `r2b-capitalize-title-stop-words'.") |
| 115 | 130 | ||
| 116 | (defvar r2b-delimit-with-quote | 131 | (defcustom r2b-delimit-with-quote t |
| 117 | t | 132 | "*If true, then use \" to delimit fields, otherwise use braces." |
| 118 | "*If true, then use \" to delimit fields, otherwise use braces") | 133 | :type 'boolean |
| 134 | :group 'refbib) | ||
| 119 | 135 | ||
| 120 | ;********************************************************** | 136 | ;********************************************************** |
| 121 | ; Utility Functions | 137 | ; Utility Functions |
| @@ -189,8 +205,16 @@ This is in addition to the `r2b-capitalize-title-stop-words'.") | |||
| 189 | "Returns string matched in current buffer." | 205 | "Returns string matched in current buffer." |
| 190 | (buffer-substring (match-beginning exp) (match-end exp))) | 206 | (buffer-substring (match-beginning exp) (match-end exp))) |
| 191 | 207 | ||
| 192 | (defvar r2b-out-buf-name "*Out*" "*output from refer-to-bibtex" ) | 208 | (defcustom r2b-out-buf-name "*Out*" |
| 193 | (defvar r2b-log-name "*Log*" "*logs errors from refer-to-bibtex" ) | 209 | "*Name of buffer for output from refer-to-bibtex." |
| 210 | :type 'string | ||
| 211 | :group 'refbib) | ||
| 212 | |||
| 213 | (defcustom r2b-log-name "*Log*" | ||
| 214 | "*Name of buffer for logs errors from refer-to-bibtex." | ||
| 215 | :type 'string | ||
| 216 | :group 'refbib) | ||
| 217 | |||
| 194 | (defvar r2b-in-buf nil) | 218 | (defvar r2b-in-buf nil) |
| 195 | (defvar r2b-out-buf nil) | 219 | (defvar r2b-out-buf nil) |
| 196 | (defvar r2b-log nil) | 220 | (defvar r2b-log nil) |
| @@ -663,7 +687,10 @@ do \"M-x r2b-help\" for more info." | |||
| 663 | r2b-out-buf-name r2b-log-name) | 687 | r2b-out-buf-name r2b-log-name) |
| 664 | ) | 688 | ) |
| 665 | 689 | ||
| 666 | (defvar r2b-load-quietly nil "*Don't print help message when loaded") | 690 | (defcustom r2b-load-quietly nil |
| 691 | "*Non-nil means don't print help message when loaded." | ||
| 692 | :type 'boolean | ||
| 693 | :group 'refbib) | ||
| 667 | 694 | ||
| 668 | (defvar r2b-help-message | 695 | (defvar r2b-help-message |
| 669 | " Refer to Bibtex Bibliography Conversion | 696 | " Refer to Bibtex Bibliography Conversion |
diff --git a/lisp/textmodes/refer.el b/lisp/textmodes/refer.el index 3234acf2d02..6d710e8d8b5 100644 --- a/lisp/textmodes/refer.el +++ b/lisp/textmodes/refer.el | |||
| @@ -72,7 +72,12 @@ | |||
| 72 | 72 | ||
| 73 | (provide 'refer) | 73 | (provide 'refer) |
| 74 | 74 | ||
| 75 | (defvar refer-bib-directory nil | 75 | (defgroup refer nil |
| 76 | "Look up references in bibliography files." | ||
| 77 | :prefix "refer-" | ||
| 78 | :group 'wp) | ||
| 79 | |||
| 80 | (defcustom refer-bib-directory nil | ||
| 76 | "Directory, or list of directories, to search for \\.bib files. Can | 81 | "Directory, or list of directories, to search for \\.bib files. Can |
| 77 | be set to 'bibinputs or 'texinputs, in which case the environment | 82 | be set to 'bibinputs or 'texinputs, in which case the environment |
| 78 | variable BIBINPUTS or TEXINPUTS, respectively, is used to obtain a | 83 | variable BIBINPUTS or TEXINPUTS, respectively, is used to obtain a |
| @@ -87,10 +92,12 @@ Note that an empty directory is interpreted by BibTeX as indicating | |||
| 87 | the default search path. Since Refer does not know that default path, | 92 | the default search path. Since Refer does not know that default path, |
| 88 | it cannot search it. Include that path explicitly in your BIBINPUTS | 93 | it cannot search it. Include that path explicitly in your BIBINPUTS |
| 89 | environment if you really want it searched (which is not likely to | 94 | environment if you really want it searched (which is not likely to |
| 90 | happen anyway).") | 95 | happen anyway)." |
| 96 | :type '(choice (repeat directory) (const bibinputs) (const texinputs)) | ||
| 97 | :group 'refer) | ||
| 91 | 98 | ||
| 92 | (defvar refer-bib-files 'dir | 99 | (defcustom refer-bib-files 'dir |
| 93 | "*List of \\.bib files to search for references, | 100 | "*List of \\.bib files to search for references, |
| 94 | or one of the following special values: | 101 | or one of the following special values: |
| 95 | nil = prompt for \\.bib file (if visiting a \\.bib file, use it as default) | 102 | nil = prompt for \\.bib file (if visiting a \\.bib file, use it as default) |
| 96 | auto = read \\.bib file names from appropriate command in buffer (see | 103 | auto = read \\.bib file names from appropriate command in buffer (see |
| @@ -104,16 +111,20 @@ is automatically tried. | |||
| 104 | If refer-bib-files is nil, auto or dir, it is setq'd to the appropriate | 111 | If refer-bib-files is nil, auto or dir, it is setq'd to the appropriate |
| 105 | list of files when it is first used if refer-cache-bib-files is t. If | 112 | list of files when it is first used if refer-cache-bib-files is t. If |
| 106 | refer-cache-bib-files is nil, the list of \\.bib files to use is re-read | 113 | refer-cache-bib-files is nil, the list of \\.bib files to use is re-read |
| 107 | each time it is needed.") | 114 | each time it is needed." |
| 115 | :type '(choice (repeat file) (const nil) (const auto) (const dir)) | ||
| 116 | :group 'refer) | ||
| 108 | 117 | ||
| 109 | (defvar refer-cache-bib-files t | 118 | (defcustom refer-cache-bib-files t |
| 110 | "*Variable determining whether the value of refer-bib-files should be cached. | 119 | "*Variable determining whether the value of refer-bib-files should be cached. |
| 111 | If t, initialize the value of refer-bib-files the first time it is used. If | 120 | If t, initialize the value of refer-bib-files the first time it is used. If |
| 112 | nil, re-read the list of \\.bib files depending on the value of refer-bib-files | 121 | nil, re-read the list of \\.bib files depending on the value of refer-bib-files |
| 113 | each time it is needed.") | 122 | each time it is needed." |
| 123 | :type 'boolean | ||
| 124 | :group 'refer) | ||
| 114 | 125 | ||
| 115 | (defvar refer-bib-files-regexp "\\\\bibliography" | 126 | (defcustom refer-bib-files-regexp "\\\\bibliography" |
| 116 | "*Regexp matching a bibliography file declaration. | 127 | "*Regexp matching a bibliography file declaration. |
| 117 | The current buffer is expected to contain a line such as | 128 | The current buffer is expected to contain a line such as |
| 118 | \\bibliography{file1,file2,file3} | 129 | \\bibliography{file1,file2,file3} |
| 119 | which is read to set up refer-bib-files. The regexp must specify the command | 130 | which is read to set up refer-bib-files. The regexp must specify the command |
| @@ -121,7 +132,9 @@ which is read to set up refer-bib-files. The regexp must specify the command | |||
| 121 | command is expected to specify a file name, or a list of comma-separated file | 132 | command is expected to specify a file name, or a list of comma-separated file |
| 122 | names, within curly braces. | 133 | names, within curly braces. |
| 123 | If a specified file doesn't exist and has no extension, a \\.bib extension | 134 | If a specified file doesn't exist and has no extension, a \\.bib extension |
| 124 | is automatically tried.") | 135 | is automatically tried." |
| 136 | :type 'regexp | ||
| 137 | :group 'refer) | ||
| 125 | 138 | ||
| 126 | (make-variable-buffer-local 'refer-bib-files) | 139 | (make-variable-buffer-local 'refer-bib-files) |
| 127 | (make-variable-buffer-local 'refer-cache-bib-files) | 140 | (make-variable-buffer-local 'refer-cache-bib-files) |
diff --git a/lisp/textmodes/scribe.el b/lisp/textmodes/scribe.el index b210e13229d..809992629f6 100644 --- a/lisp/textmodes/scribe.el +++ b/lisp/textmodes/scribe.el | |||
| @@ -30,21 +30,32 @@ | |||
| 30 | 30 | ||
| 31 | ;;; Code: | 31 | ;;; Code: |
| 32 | 32 | ||
| 33 | (defgroup scribe nil | ||
| 34 | "Scribe mode." | ||
| 35 | :prefix "scribe-" | ||
| 36 | :group 'wp) | ||
| 37 | |||
| 33 | (defvar scribe-mode-syntax-table nil | 38 | (defvar scribe-mode-syntax-table nil |
| 34 | "Syntax table used while in scribe mode.") | 39 | "Syntax table used while in scribe mode.") |
| 35 | 40 | ||
| 36 | (defvar scribe-mode-abbrev-table nil | 41 | (defvar scribe-mode-abbrev-table nil |
| 37 | "Abbrev table used while in scribe mode.") | 42 | "Abbrev table used while in scribe mode.") |
| 38 | 43 | ||
| 39 | (defvar scribe-fancy-paragraphs nil | 44 | (defcustom scribe-fancy-paragraphs nil |
| 40 | "*Non-NIL makes Scribe mode use a different style of paragraph separation.") | 45 | "*Non-NIL makes Scribe mode use a different style of paragraph separation." |
| 46 | :type 'boolean | ||
| 47 | :group 'scribe) | ||
| 41 | 48 | ||
| 42 | (defvar scribe-electric-quote nil | 49 | (defcustom scribe-electric-quote nil |
| 43 | "*Non-NIL makes insert of double quote use `` or '' depending on context.") | 50 | "*Non-NIL makes insert of double quote use `` or '' depending on context." |
| 51 | :type 'boolean | ||
| 52 | :group 'scribe) | ||
| 44 | 53 | ||
| 45 | (defvar scribe-electric-parenthesis nil | 54 | (defcustom scribe-electric-parenthesis nil |
| 46 | "*Non-NIL makes parenthesis char ( (]}> ) automatically insert its close | 55 | "*Non-NIL makes parenthesis char ( (]}> ) automatically insert its close |
| 47 | if typed after an @Command form.") | 56 | if typed after an @Command form." |
| 57 | :type 'boolean | ||
| 58 | :group 'scribe) | ||
| 48 | 59 | ||
| 49 | (defconst scribe-open-parentheses "[({<" | 60 | (defconst scribe-open-parentheses "[({<" |
| 50 | "Open parenthesis characters for Scribe.") | 61 | "Open parenthesis characters for Scribe.") |
diff --git a/lisp/textmodes/spell.el b/lisp/textmodes/spell.el index c413459a3d7..780eeb883d8 100644 --- a/lisp/textmodes/spell.el +++ b/lisp/textmodes/spell.el | |||
| @@ -31,13 +31,22 @@ | |||
| 31 | 31 | ||
| 32 | ;;; Code: | 32 | ;;; Code: |
| 33 | 33 | ||
| 34 | (defvar spell-command "spell" | 34 | (defgroup spell nil |
| 35 | "*Command to run the spell program.") | 35 | "Interface to the UNIX spell(1) program." |
| 36 | :prefix "spell-" | ||
| 37 | :group 'applications) | ||
| 36 | 38 | ||
| 37 | (defvar spell-filter nil | 39 | (defcustom spell-command "spell" |
| 40 | "*Command to run the spell program." | ||
| 41 | :type 'string | ||
| 42 | :group 'spell) | ||
| 43 | |||
| 44 | (defcustom spell-filter nil | ||
| 38 | "*Filter function to process text before passing it to spell program. | 45 | "*Filter function to process text before passing it to spell program. |
| 39 | This function might remove text-processor commands. | 46 | This function might remove text-processor commands. |
| 40 | nil means don't alter the text before checking it.") | 47 | nil means don't alter the text before checking it." |
| 48 | :type 'function | ||
| 49 | :group 'spell) | ||
| 41 | 50 | ||
| 42 | ;;;###autoload | 51 | ;;;###autoload |
| 43 | (put 'spell-filter 'risky-local-variable t) | 52 | (put 'spell-filter 'risky-local-variable t) |