texi.srt 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. ;; texi.srt --- SRecode templates for Texinfo
  2. ;; Copyright (C) 2008-2012 Free Software Foundation, Inc.
  3. ;; Author: Eric M. Ludlam <eric@siege-engine.com>
  4. ;; This file is part of GNU Emacs.
  5. ;; GNU Emacs is free software: you can redistribute it and/or modify
  6. ;; it under the terms of the GNU General Public License as published by
  7. ;; the Free Software Foundation, either version 3 of the License, or
  8. ;; (at your option) any later version.
  9. ;; GNU Emacs is distributed in the hope that it will be useful,
  10. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ;; GNU General Public License for more details.
  13. ;; You should have received a copy of the GNU General Public License
  14. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  15. set mode "texinfo-mode"
  16. set escape_start "$"
  17. set escape_end "$"
  18. set DOLLAR "$"
  19. context file
  20. prompt NAME "Name of manual: "
  21. template empty :file :user :time
  22. "Fill a new texinfo file with some baseline stuff."
  23. ----
  24. \input texinfo @c -*-texinfo-*-
  25. @c %**start of header
  26. @setfilename $FILE$.info
  27. @set TITLE $?NAME$
  28. @set AUTHOR $?AUTHOR$
  29. @settitle @value{TITLE}
  30. @c %**end of header
  31. @ifinfo
  32. @format
  33. START-INFO-DIR-ENTRY
  34. * $FILE$: ($FILE$). $NAME$
  35. END-INFO-DIR-ENTRY
  36. @end format
  37. @end ifinfo
  38. @titlepage
  39. @sp 10
  40. @center @titlefont{$FILE$}
  41. @vskip 0pt plus 1 fill
  42. Copyright @copyright{} $YEAR$ $AUTHOR$
  43. @end titlepage
  44. @node Top
  45. @top @value{TITLE}
  46. $^$
  47. @menu
  48. * Index::
  49. @end menu
  50. @node Index
  51. @chapter Index
  52. @contents
  53. @bye
  54. ----
  55. prompt NAME "Name of item: "
  56. context declaration
  57. ;; Note to self: It would be cool to replace the junk in
  58. ;; semantic/document.el with macros from here.
  59. template function :blank :texitag
  60. "Import some function tag into texinfo."
  61. ----
  62. @defun $NAME$$#ARGS$ $NAME$$/ARGS$
  63. @anchor{$NAME$}
  64. $TAGDOC$
  65. @end defun
  66. ----
  67. bind "f"
  68. template function-command :blank :texitag
  69. "Import some function tag into texinfo."
  70. ----
  71. @deffn Command $NAME$$#ARGS$ $NAME$$/ARGS$
  72. @anchor{$NAME$}
  73. $TAGDOC$
  74. @end deffn
  75. ----
  76. bind "f"
  77. template variable :blank :texitag
  78. "Import some variable tag into texinfo"
  79. ----
  80. @defvar $NAME$$#ARGS$ $NAME$$/ARGS$
  81. @anchor{$NAME$}
  82. $TAGDOC$
  83. @end defvar
  84. ----
  85. bind "v"
  86. prompt NAME "Name of node: "
  87. template node :texi
  88. "Insert a node right about here."
  89. ----
  90. @node $?NAME$
  91. @$?LEVEL$ $NAME$
  92. $^$
  93. ----
  94. bind "n"
  95. template subnode :texi
  96. "Insert a node right about here."
  97. ----
  98. @node $?NAME$
  99. @$?NEXTLEVEL$ $NAME$
  100. $^$
  101. ----
  102. bind "n"
  103. template menu :blank
  104. "Menu items for texinfo."
  105. ----
  106. @menu
  107. $^$
  108. @end menu
  109. ----
  110. bind "m"
  111. prompt NAME "Menu item: "
  112. template menuitem :blank
  113. "Insert a menu item."
  114. ----
  115. * $?NAME$:: $^$
  116. ----
  117. ;; end