How to add a customed entry into the menu bar

I want to add a dedicated entry in the menu bar (the kind similar to File, Edit Insert) so that I can add some frequently used functions over there.

I have skim the Scheme code a little bit, but I found no way to do this. Instead somehow I overwrite the whole menu bar.

There is a clue:

View -> User provided icons

But I haven’t tried it.

(tm-menu (tools-menu)
  (former)
  ---
  ("New item" (noop)))

Using (former) can add a customed entry to the menu bar.

See https://www.texmacs.org/tmweb/manual/webman-scheme.en.html

I do not need it anymore. But it might be interesting or useful to others.

2 Likes