Hi François, thanks for the helpful advice, TeXmacs didn't like the syntax

/usr/share/TeXmacs/progs/kernel/gui/kbd-define.scm:226:7: In procedure 
kbd-map-pre-one in expression (texmacs-error "kbd-map-pre-one" "Bad keymap in: 
~S" ...):
/usr/share/TeXmacs/progs/kernel/gui/kbd-define.scm:226:7: Bad keymap in: "C-l"

so I looked in the source and changed it to what I thought was correct

(kbd-map
  ("C-L" (clipboard-copy-export "latex" "primary")))

and now texmacs starts but still it does not do a LaTeX copy when I press Ctrl-L

I am using Revision: 9749 if it matters

any ideas?

much appreciative,
Stephen


p.s. the footer should be gone.  ;-)

On 07/20/2015 03:09 AM, François Poulain wrote:
> Hi,
> 
> Le Sun, 19 Jul 2015 12:27:45 -0500,
> Stephen Crowley <[email protected]> a écrit :
> 
>> any hints where to look? scheme is not my forte ... I am trying to
>> bind a key to the "Copy to LaTeX" function...
> 
> I guess you should call something like (clipboard-copy-export "latex"
> "primary"). So, in order to define a shortcut you have to call 
> 
> (kbd-map
>   "C-L"
>   (clipboard-copy-export "latex" "primary"))
> 
> at any time in your TeXmacs session (with "C-L" meaning "Ctrl + L").
> Probably you will want to add it to the
> ~/.TeXmacs/progs/my-init-texmacs.scm file.
> 
> I don't have a TeXmacs under the hand, so I did not tested it.
> 
> Adding an entry to the contextual menu is a bit more difficult.
> 
> Good luck
> François
> 
> PS: your body's footer is harmful.
> 


_______________________________________________
Texmacs-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/texmacs-dev

Reply via email to