Re: Key binding map

2000-09-07 Thread Lior Silberman

On Thu, 7 Sep 2000, Allan Rae wrote:

> On Wed, 6 Sep 2000, John Culleton wrote:
> 
> > Allan Rae wrote:
> > > Try adding a line like:
> > > 
> > > \bind_file "hollywood.bind"
> > > 
> > > to your ~/.lyx/lyxrc
> > > 
> > > Allan. (ARRae)
> > 
> > Thanks for your suggestion.
> > 
> > Is there a way to call up these bindings only for certain documents? It
> > seems to me that the bindings hollywood.bind should be activated only
> > for hollywood format documents, and not for letters etc.
> 
> Not possible at present although it would be nice.
> I think JMarc suggested placing keybindings in layout files.  This would
> allow what you suggest and would just require that we reload the layouts
> keybindings when we switch buffers.
> 
> Allan. (ARRae)
> 
> 

While it's not document-specific, you can change the keybindings (and
other parameters) semi-dynamically by having more than one -userdir.

Lior.




Re: Key binding map

2000-09-07 Thread Jean-Marc Lasgouttes

> "Allan" == Allan Rae <[EMAIL PROTECTED]> writes:

Allan> Not possible at present although it would be nice. I think
Allan> JMarc suggested placing keybindings in layout files. This would
Allan> allow what you suggest and would just require that we reload
Allan> the layouts keybindings when we switch buffers.

Did I write that? I just remember that I thought about it :) It would
be straightforward to change the Style entries to read

Style "Section|1" 
...
End

And have the textclass class do the binding to "M-l 1". We would need
to un-bind when changing class, though.

JMarc



Re: Key binding map

2000-09-06 Thread Allan Rae

On Wed, 6 Sep 2000, John Culleton wrote:

> Allan Rae wrote:
> > Try adding a line like:
> > 
> > \bind_file "hollywood.bind"
> > 
> > to your ~/.lyx/lyxrc
> > 
> > Allan. (ARRae)
> 
> Thanks for your suggestion.
> 
> Is there a way to call up these bindings only for certain documents? It
> seems to me that the bindings hollywood.bind should be activated only
> for hollywood format documents, and not for letters etc.

Not possible at present although it would be nice.
I think JMarc suggested placing keybindings in layout files.  This would
allow what you suggest and would just require that we reload the layouts
keybindings when we switch buffers.

> Also the error "keymap not found" is perplexing even if it is unrelated.
> How did I manage to come up with this one?

You said you tried setting the keymap in the options->keyboard stuff.
I didn't think you could enter a line there yourself so maybe you tried
setting it in lyxrc with a line like :  \keymap "hollywood.bind"

Anyway that's not really important.  Keymaps supplied with LyX all have a
.kmap or .cdef extension and are kept in the kbd/ subdirectory.

Allan. (ARRae)





Re: Key binding map

2000-09-06 Thread John Culleton

Allan Rae wrote:
> 
> On Tue, 5 Sep 2000, John Culleton wrote:
> 
> > I have a key binding map "hollywood.bind" in the appropriate directory.
> > When I try to activate this map via options-> keyboard I get the error
> > message "error keymap not found."
> 
> that's because its a LyX bind file not a keymap.
> 
> >
> 
> Try adding a line like:
> 
> \bind_file "hollywood.bind"
> 
> to your ~/.lyx/lyxrc
> 
> Allan. (ARRae)

Thanks for your suggestion.

Is there a way to call up these bindings only for certain documents? It
seems to me that the bindings hollywood.bind should be activated only
for hollywood format documents, and not for letters etc.

Also the error "keymap not found" is perplexing even if it is unrelated.
How did I manage to come up with this one?
-- 
John Culleton -> Please visit http://ccpl.carr.org/~john/



Re: Key binding map

2000-09-05 Thread Allan Rae

On Tue, 5 Sep 2000, John Culleton wrote:

> I have a key binding map "hollywood.bind" in the appropriate directory.
> When I try to activate this map via options-> keyboard I get the error
> message "error keymap not found."

that's because its a LyX bind file not a keymap.

> Obviously there is a trick to it. I just wish all this kind of stuff was
> handled by a default at installation. I don't find any other files
> (other than in Lyx that is) with a .bind suffix so moving files around
> and re-texhashing probably won't help.  Any suggestions?

Try adding a line like:

\bind_file "hollywood.bind"

to your ~/.lyx/lyxrc

Allan. (ARRae)




Key binding map

2000-09-05 Thread John Culleton

I have a key binding map "hollywood.bind" in the appropriate directory.
When I try to activate this map via options-> keyboard I get the error
message "error keymap not found."

Obviously there is a trick to it. I just wish all this kind of stuff was
handled by a default at installation. I don't find any other files
(other than in Lyx that is) with a .bind suffix so moving files around
and re-texhashing probably won't help.  Any suggestions?


-- 
John Culleton -> Please visit http://ccpl.carr.org/~john/