Thanks to Christian and Andre!

Christian Ridderstr�m wrote:
> > BTW: Is there a function to show the keybindings on the statusbar (like
> > the show-key in jed or emacs)?
> 
> I don't think so, but this script:
>         http://wiki.lyx.org/pmwiki.php/Tools/LyxBindings
> can show you all bindings.

Unfortunately, there is no binding of the backslach in any of the *.bind
files :-(

Andre Poenitz wrote:
> 
> Try 'ert-insert' which is usually bound to C-l.

This did the trick.
\bind "numbersign"      "ert-insert"

However, it binds regardless of whether I am in math mode or not.

Next idea is
\bind "numbersign"      "self-insert \\"
\bind "backslash"       "self-insert #"

And indeed, in text mode # inserts \ and Alt-Gr � inserts # while in math
mode, # does the same as C-l, i.e. ert-insert.

It looks like the math mode has some special handling of keys that cannot
be changed by the user. 

-> Feature request: a \mathbind command, that binds a key only in math
mode, e.g.

\mathbind "numbersign"      "ert-insert"

G�nter


-- 
G.Milde at web.de

Reply via email to