mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] keyboard shortcut customization


Chronological Thread 
  • From: Henri Lesourd <address@hidden>
  • To: Nachiketa Sahoo <address@hidden>
  • Cc: TeXmacs Users List <address@hidden>
  • Subject: Re: [TeXmacs] keyboard shortcut customization
  • Date: Fri, 30 Sep 2005 03:45:28 +0200

> I am trying to customize the keyboard shortcuts for a more windows
> like behaviour. I have the following text in the my-init-texmacs.scm
> file
>
> (kbd-map
> ("C-n" (new-buffer))
> ("C-o" (choose-file "Load file" "" 'load-buffer))
> ("C-s" (save-buffer))
> ("C-p" (preview-with-ghostview))
> ("C-w" (safely-kill-buffer))
> ("C-q" (safely-quit-TeXmacs))
> ("C-z" (undo))
> ("C-y" (redo))
> ("C-x" (clipboard-cut "primary"))
> ("C-c" (clipboard-copy "primary"))
> ("C-v" (clipboard-paste "primary")))
>
> The problem is: it is not overriding the existing keyboard shortcuts
> with these. Only if one of these shortcuts is available, then it's
> taking effect. For instance C-z is doing undo, but, C-y is not doing
> redo. It's doing the default TeXmacs action, i.e., paste the text from
> clipboard to buffer.
>
> Is there a way I can override the existing keyboard shortcuts with
> these and leave the remaining of the existing shortcuts intact?
>
> Thanks,
> Nachi
>
>
There is a new documentation about Scheme and these
kinds of things, currently only on the CVS :
[[
http://www.texmacs.org/cgi-bin/cvsweb.cgi/doc/devel/scheme/
]]

The doc says that to solve the problem, you should use
the flag "prevail?", like this :
[[
(kbd-map
(:mode prevail?)
("C-n" (new-buffer)))
]]

Could you let us know if it works (or if it doesn't) ?

Best, Henri




Archive powered by MHonArc 2.6.19.

Top of page