Hi,The lazy solution should work, but the lazy loading
I want to remove some key bindings, e.g. "| >" which is defined in math/math-kbd.scm. I found the macro kbd-remove in kernel/gui/kbd-define.scm which does exactly this when issuing
(kbd-remove (:mode in-math?) "| >")
However, this macro is overwritten in generic/generic-edit.scm, so I don't know how to access it in my-init-texmacs.scm.
My current solution is the following: I edited kernel/gui/kbd-define.scm and copied kbd-remove to another macro kbd-remove-mapping. Then the following works in my-init-texmacs.scm:
(import-from (utils edit variants))
(import-from (texmacs keyboard windows-kbd))
(import-from (math math-kbd))
(kbd-remove-mapping (:mode in-math?) "| >")
The help also mentions the use of
(lazy-keyboard-force)
but this leads to the following error on startup of texmacs
Fatal error: No active view in 'tm_server_rep::get_meta'
Although my "solution" is working at the moment, I don't like it since I had to edit kernel/gui/kbd-define.scm. What should I do instead?
Archive powered by MHonArc 2.6.19.