mailing-list for TeXmacs Users

Text archives Help


Re: Rebinding keys that already have bindings.


Chronological Thread 
  • From: Jeroen Wouters <address@hidden>
  • To: Jay Belanger <address@hidden>, address@hidden
  • Subject: Re: Rebinding keys that already have bindings.
  • Date: Sat, 20 Nov 2021 17:06:34 +0000

Hi Jay,

Probably your my-init-texmacs.scm command gets run before the system
command defining the shortcut, so the system one "wins" and overwrites
yours.

Try writing the kbd-map as "(delayed (lazy-keyboard-force) (kbd-map
...) )" to make TeXmacs run your definition last.

Best wishes,
Jeroen

On Mon, 2021-11-15 at 22:55 -0600, Jay Belanger wrote:
>
> (I'm using the latest TeXmacs on the latest Ubuntu.)
>
> When using the default keybindings, C-h is bound to replace.   If I
> try to rebind it in my my-init-texmacs.scm with either
>
> (kbd-map
>     ("C-h" (make 'theorem)))
>
> or
>
> (kbd-map
>     (:mode prevail?)
>     ("C-h" (make 'theorem)))
>
> it doesn't get rebound; C-h still begins replace.   If I use
> different
> keybindings, where C-h doesn't already have a binding, then either
> one
> of these will begin a theorem.
>
> How do I rebind keys that already have bindings, like C-h above?
>
> Thanks,
> Jay




Archive powered by MHonArc 2.6.19.

Top of page