![]() |
Introduction to the Guile extension language | ![]() |
Like Emacs, TeXmacs comes with a Lisp-like extension language, namely the Guile Scheme dialect from the GNU project. For documentation about Guile Scheme, we refer to
http://www.gnu.org/software/guile/guile.html
Scheme has the advantage that it may be extended with extern C and C++ types and routines. In our case, we have extended Scheme with routines which you can use to create your own menus and key-combinations, and even to write your own extensions to TeXmacs.
If you have downloaded the source files of TeXmacs, then it may be interesting for you to take a look at the files
Guile/Glue/build-glue-basic.scm
Guile/Glue/build-glue-editor.scm
Guile/Glue/build-glue-server.scm
These three “glue” files contain the C++ routines, which are visible within Scheme. In what follows, we will discuss some of the most important routines. We plan to write a more complete reference guide later. You may also take a look at the scheme .scm files in the directory $TEXMACS_PATH/progs.