Skip to Content.
Sympa Menu

texmacs-users - Deleting key bindings

Subject: mailing-list for TeXmacs Users

List archive

Deleting key bindings


Chronological Thread 
  • From: Armin Straub <address@hidden>
  • To: address@hidden
  • Subject: Deleting key bindings
  • Date: Sat, 25 Mar 2006 12:50:01 +0100

Hi,

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?

I'm using TeXmacs 1.0.6.

Thank you
--
Armin Straub



Archive powered by MHonArc 2.6.19.

Top of Page