1 ;; texi.srt --- SRecode templates for Texinfo
3 ;; Copyright (C) 2008-2013 Free Software Foundation, Inc.
5 ;; Author: Eric M. Ludlam <eric@siege-engine.com>
7 ;; This file is part of GNU Emacs.
9 ;; GNU Emacs is free software: you can redistribute it and/or modify
10 ;; it under the terms of the GNU General Public License as published by
11 ;; the Free Software Foundation, either version 3 of the License, or
12 ;; (at your option) any later version.
14 ;; GNU Emacs is distributed in the hope that it will be useful,
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;; GNU General Public License for more details.
19 ;; You should have received a copy of the GNU General Public License
20 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22 set mode "texinfo-mode"
30 prompt NAME "Name of manual: "
32 template empty :file :user :time
33 "Fill a new texinfo file with some baseline stuff."
35 \input texinfo @c -*-texinfo-*-
37 @setfilename $FILE$.info
40 @settitle @value{TITLE}
46 * $FILE$: ($FILE$). $NAME$
53 @center @titlefont{$FILE$}
54 @vskip 0pt plus 1 fill
55 Copyright @copyright{} $YEAR$ $AUTHOR$
78 prompt NAME "Name of item: "
82 ;; Note to self: It would be cool to replace the junk in
83 ;; semantic/document.el with macros from here.
84 template function :blank :texitag
85 "Import some function tag into texinfo."
88 @defun $NAME$$#ARGS$ $NAME$$/ARGS$
96 template function-command :blank :texitag
97 "Import some function tag into texinfo."
100 @deffn Command $NAME$$#ARGS$ $NAME$$/ARGS$
109 template variable :blank :texitag
110 "Import some variable tag into texinfo"
113 @defvar $NAME$$#ARGS$ $NAME$$/ARGS$
121 prompt NAME "Name of node: "
124 "Insert a node right about here."
135 template subnode :texi
136 "Insert a node right about here."
149 "Menu items for texinfo."
159 prompt NAME "Menu item: "
161 template menuitem :blank
162 "Insert a menu item."