Hi. I’ve been using TeXmacs or a few months now, and I’ve switched to it for a number of documents I’m writing. Thanks for this amazing editor.
As the title states, I’ve created a very basic plugin to interact with Haskell’s REPL (ghci
). I’m amazed as to how little I need to do (just forward wrapped text back and forth) for TeXmacs to do its thing. However, I’ve run into a wall.
In the init file, right after the plugin-configure
entry, I do this:
;; Add the help file to the Help->Plugins menu.
(when (and supports-ghci? ghci-doc-dir)
(tm-menu (help-plugins-menu)
(former)
---
("GHCi" (load-help-article
(string-append ghci-doc-dir "/Help - The GHCi plug-in.tm")))))
Which has the desired effect in Windows, but not in Linux, where nothing happens (if I run it in a Scheme session in TeXmacs, though, it works.) I’ve tried delaying tm-menu
for a couple of seconds to no avail, and using menu-bind
instead gave me an error message. Is there a workaround? Am I doing something wrong?
(In case you’re wondering, ghci-doc-dir
resolves to $TEXMACS_HOME_PATH/plugins/ghci/doc
, $TEXMACS_PATH/plugins/ghci/doc
or #f
if none of the former are available. I’ve tested its resolution in both OSs.)
Any help will be appreciated.