How do I change hotkeys?

By default, the hotkey to insert the displayed formula is Alt+$, which needs to use Shift (for $). In fact, I have to use Alt+Shift+$. But in my system, Alt+Shift used for changing language, and for this reason, Alt+Shift+$ does not work. How can I change the default combination for something another? The same for several equations.
And the close question. The hotkey for the fraction is Alt+F. But I prefer a combination Alt+/ as in Mathematica. How can I change this default definition?

I think your question is closely related to mine: Change system's default shortcut for symbols. You may check the answers there.

Thank you, but I really do not understand how it helps with my question. I think I have to put something in ~.TeXmacs/progs/my-init-texmacs.scm , but what I have to write there?

I made the hotkeys I needed. Maybe it will be interesting for somebody.

Farction as in Mathematica:
(delayed (lazy-keyboard-force)
(kbd-map (:mode in-math-not-hybrid?)
(“C-/” (make-fraction))))

Square root as in Mathematica:
(delayed (lazy-keyboard-force)
(kbd-map (:mode in-math-not-hybrid?)
(“C-2” (make-sqrt))))

Make vector over - Ctr+Shift+v:
(delayed (lazy-keyboard-force)
(kbd-map (:mode in-math-not-hybrid?)
(“C-V” (make-wide “”))))

3 Likes