Dear all,
does anyone know if there is an emacs customization file for TeXmacs Scheme files (with TeXmacs keywords like tm-define and so on)?
TeXmacs keyword highlighting in emacs
$TEXMACS_PATH/progs/tm-mode.el
Thanks.
I added in my .emacs
file the following line
(load (substitute-in-file-name "$TEXMACS_PATH/progs/tm-mode.el"))
and emacs picks up the definitions (have just tested tm-define
till now, which is now highlighted and indented in the same way as define
) - I think that loading this on top of all other minor modes should be ok, as it—does not seem to me—to conflict with other definitions.
Also it seems that I can load it unconditionally, as inside it there is
(add-hook 'scheme-mode-hook '(lambda () (texmacs-style)))
which takes care of loading the mode for Scheme files only.