>>>>> "Christian" == Christian Ridderström <[EMAIL PROTECTED]> writes:

Christian> On Fri, 28 Mar 2003, Edwin Leuven wrote:
>> On Fri Mar 28 2003 11:47, Christian Ridderström wrote: > which LyX
>> parses when opening a lyx-file. This way you could also add > your
>> own special keybindings that will be activated when you open a >
>> certain .lyx-file.
>> 
>> i don't think i like the idea of per file interface settings; this
>> would imply that when i exchange docs with someone else i inherit
>> this persons keybindings
>> 
>> more in general i don't see why i would want to vary this for
>> myself (but then again, i'm only a simple mind)

Christian> I started thinking on this because I was working with a
Christian> document that required the "Use temporary path" setting
Christian> disabled.

The real thing to do would be to fix this bug, probably... HTML export
comes to mind.

Christian> Then I thought that this could be useful for some
Christian> complicated key bindings, or if you would like to bind C-a
Christian> to different things when you work in different documents.

Christian> As an example, I use this binding (it inserts a musical
Christian> chord):

Christian> \bind "C-a" "command-sequence math-mode; line-end;
Christian> math-insert \Ch; char-backward; line-begin-select; cut;
Christian> char-forward; paste; down;"

What does this do??

Christian> A more frequent example might be to do something like this:

Christian> \bind "C-a" "command-sequence ert-insert; self-insert
Christian> \matlab{}; inset-toggle;"

Christian> where \matlab{} is a special command I've defined in the
Christian> preamble.

This one is trickier...

JMarc

Reply via email to