summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/dox/dox.el
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-09-28 23:54:47 +0000
committerKarl Berry <karl@freefriends.org>2009-09-28 23:54:47 +0000
commite1ad2371d28982edecd1e4f12ff42cdb6f15dcd6 (patch)
tree3c69d6e5f4b548cb35e1c87163cd2691ff100a0e /Master/texmf-dist/doc/latex/dox/dox.el
parentaa68074d07abe15fed1b4269d79c8c7567702100 (diff)
dox 2.1 (28sep09)
git-svn-id: svn://tug.org/texlive/trunk@15539 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/dox/dox.el')
-rw-r--r--Master/texmf-dist/doc/latex/dox/dox.el25
1 files changed, 25 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/dox/dox.el b/Master/texmf-dist/doc/latex/dox/dox.el
index ca6496fb870..04638176083 100644
--- a/Master/texmf-dist/doc/latex/dox/dox.el
+++ b/Master/texmf-dist/doc/latex/dox/dox.el
@@ -37,6 +37,31 @@
'("doxitem" [ "Options" ]
"Function name" "Environment name" "Index category name")))))
+(defun doxitem (envname)
+ "Register a new environment ENVNAME with AUC-TeX.
+
+The effect is to make docTeX mode treat this new environment just like
+the macro and environment ones. Currently, this means avoiding inner
+indentation.
+
+ENVNAME is actually a regexp appearing in a logical group.
+This means that you can register several environments simultaneously
+by means or regexp combination."
+ (make-local-variable 'docTeX-indent-inner-fixed)
+ (push (list
+ (concat (regexp-quote TeX-esc)
+ "\\(begin\\|end\\)[ \t]*{\\("
+ envname
+ "\\)\\*?}")
+ 0 nil)
+ docTeX-indent-inner-fixed))
+
+(defun doxitems (&rest envnames)
+ "Register environments ENVNAMES with AUC-TeX.
+See the function `doxitem' for more information."
+ (mapc #'doxitem envnames))
+
+
;;; Local variables: