aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-10-06 01:49:53 +0000
committerGlenn Morris2007-10-06 01:49:53 +0000
commit1caf5f96e2835462076f13506c9248b217bb12e7 (patch)
tree3578ac5361f2b77000b003074d8abfd0ecb7c62b
parent490a8abe3731b896c54791f50e25a31045016c29 (diff)
downloademacs-1caf5f96e2835462076f13506c9248b217bb12e7.tar.gz
emacs-1caf5f96e2835462076f13506c9248b217bb12e7.zip
Aaron Hawley <aaronh at garden.org>
(auto-insert-alist): Add a Texinfo entry.
-rw-r--r--lisp/autoinsert.el83
1 files changed, 82 insertions, 1 deletions
diff --git a/lisp/autoinsert.el b/lisp/autoinsert.el
index f2ae7a5b4fd..5887529ba43 100644
--- a/lisp/autoinsert.el
+++ b/lisp/autoinsert.el
@@ -212,7 +212,88 @@ If this contains a %s, that will be replaced by the matching rule."
212\(provide '" 212\(provide '"
213 (file-name-sans-extension (file-name-nondirectory (buffer-file-name))) 213 (file-name-sans-extension (file-name-nondirectory (buffer-file-name)))
214 ") 214 ")
215\;;; " (file-name-nondirectory (buffer-file-name)) " ends here\n")) 215\;;; " (file-name-nondirectory (buffer-file-name)) " ends here\n")
216 (("\\.texi\\(nfo\\)?\\'" . "Texinfo file skeleton")
217 "Title: "
218 "\\input texinfo @c -*-texinfo-*-
219@c %**start of header
220@setfilename "
221 (file-name-sans-extension
222 (file-name-nondirectory (buffer-file-name))) ".info\n"
223 "@settitle " str "
224@c %**end of header
225@copying\n"
226 (setq short-description (read-string "Short description: "))
227 ".\n\n"
228 "Copyright @copyright{} " (substring (current-time-string) -4) " "
229 (getenv "ORGANIZATION") | (progn user-full-name) "
230
231@quotation
232Permission is granted to copy, distribute and/or modify this document
233under the terms of the GNU Free Documentation License, Version 1.1 or
234any later version published by the Free Software Foundation; with no
235Invariant Sections, and no Cover Texts. A copy of the license is
236included in the section entitled ``GNU Free Documentation License.''
237
238A copy of the license is also available from the Free Software
239Foundation Web site at @url{http://www.gnu.org/licenses/fdl.html}.
240
241@end quotation
242
243The document was typeset with
244@uref{http://www.texinfo.org/, GNU Texinfo}.
245
246@end copying
247
248@titlepage
249@title " str "
250@subtitle " short-description "
251@author " (getenv "ORGANIZATION") | (progn user-full-name)
252 " <" (progn user-mail-address) ">
253@page
254@vskip 0pt plus 1filll
255@insertcopying
256@end titlepage
257
258@c Output the table of the contents at the beginning.
259@contents
260
261@ifnottex
262@node Top
263@top " str "
264
265@insertcopying
266@end ifnottex
267
268@c Generate the nodes for this menu with `C-c C-u C-m'.
269@menu
270@end menu
271
272@c Update all node entries with `C-c C-u C-n'.
273@c Insert new nodes with `C-c C-c n'.
274@node Chapter One
275@chapter Chapter One
276
277" _ "
278
279@node Copying This Manual
280@appendix Copying This Manual
281
282@menu
283* GNU Free Documentation License:: License for copying this manual.
284@end menu
285
286@c Get fdl.texi from http://www.gnu.org/licenses/fdl.html
287@include fdl.texi
288
289@node Index
290@unnumbered Index
291
292@printindex cp
293
294@bye
295
296@c " (file-name-nondirectory (buffer-file-name)) " ends here\n"))
216 "A list specifying text to insert by default into a new file. 297 "A list specifying text to insert by default into a new file.
217Elements look like (CONDITION . ACTION) or ((CONDITION . DESCRIPTION) . ACTION). 298Elements look like (CONDITION . ACTION) or ((CONDITION . DESCRIPTION) . ACTION).
218CONDITION may be a regexp that must match the new file's name, or it may be 299CONDITION may be a regexp that must match the new file's name, or it may be