Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] keyboard shortcut customization

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] keyboard shortcut customization


Chronological Thread 
  • From: Juan Pablo Romero <address@hidden>
  • To: address@hidden
  • Cc: Nachiketa Sahoo <address@hidden>, TeXmacs Users List <address@hidden>
  • Subject: Re: [TeXmacs] keyboard shortcut customization
  • Date: Sun, 13 Nov 2005 14:48:24 -0600
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Q/ERjgQNgAZY13KPT/XVAFz+08QKVh+OJkVeY8JvqvOYNLFvimBF0fdqh/QlVggW7h9BF56ZPuwSNmxh5iqzCRsvqAc44hv7+RHIj4aAVxxfD6xSbPgfeMJ0RhNHH+OgBJQQZLQKynOU6OYMNrxIR59wZTf3JCjcxx4Dg68y24A=

It seems it doesn't work within kbd-map:

===============================
TeXmacs] With linked TrueType support
/usr/local/share/TeXmacs/progs/kernel/gui/kbd-define.scm:169:3: In
procedure conditions-insert in expression (cond (# #) (# #) ...):
/usr/local/share/TeXmacs/progs/kernel/gui/kbd-define.scm:169:3:
Conflicting option
===============================

btw, I just want to define something like:

("S-space" (go-end-with "mode" "math"))

but it doesn't seems possible without modifying the system files :(

JP

2005/9/29, Henri Lesourd <address@hidden>:
> > 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
>
>


  • Re: [TeXmacs] keyboard shortcut customization, Juan Pablo Romero, 11/13/2005

Archive powered by MHonArc 2.6.19.

Top of Page