Hello,
I created the ext-perso
function and it returns me a code scheme to create a keyboard shortcut
in order to use the cube function in texmacs. (or other functions)
(define (ext-perso a b)`(kbd-map (,a (begin (insert '(with “info-flag” “detailed” (flag ,b “red”)))(make-script-input* “scheme” “default”) (insert (string-append “(” ,b " )"))(go-to-previous)))))
(ext-perso “’ z c” “cube”)
(kbd-map ("’ z c" (begin (insert (quote (with “info-flag” “detailed” (flag “cube” “red”)))) (make-script-input* “scheme” “default”) (insert (string-append “(” “cube” " )")) (go-to-previous))))
(delayed (lazy-keyboard-force)`(ext-perso “’ a a” “cube”))
My problem is that this code would have to be executed directly to be able to use the shortcut.
If I execute this code in a scheme session then the result is what I want: the keyboard shortcut works well.
Do you have an idea for this?
Thank you very much for any answers.