m-fleury / isabelle-emacs

Clone of isabelle, with LSP extensions in seperate branches
Other
24 stars 5 forks source link

Reordering of symbol shortcuts #72

Open halbGefressen opened 1 year ago

halbGefressen commented 1 year ago

Is it possible to reorder symbol shortcuts? A quick shortcut for \<open> and \<close> would be awesome, but <</>> already bind to \<langle> and \<rangle> (probably because those have the same shortcut in Isabelle/jedit).

m-fleury commented 1 year ago

I guess you are on a keyboard where « and » is not easily accessible and that you don't use langle and rangle (both of which I do).

The line responsible for it is https://github.com/m-fleury/isar-mode/blob/master/isar-unicode-tokens.el#L778.

m-fleury commented 1 year ago

In the meantime, you can add

(map-put! isar-symbol-shortcuts "<<" "\\<open>")
(map-put! isar-symbol-shortcuts ">>" "\\<close>")

to your configuration (this make langle and rangle not accessible)