[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: gschem: customizing keymaps



Thomas Franke wrote:
> Am Mittwoch, 12. Dezember 2007 schrieb Dean Ferreyra:
>> Thomas Franke wrote:
>>> However, can anyone of the scheme experts tell me a
>>> shorthand how to change just a single element of that list
>>> without the need to make this tedious copy of the things I
>>> didn't want to change?
>>>
>>> E.g. change ("r" . view-redraw) from the global keymap list
>>> to ("F5" . view-redraw).
>>
>> This might work, though technically it's not proper Scheme
>> code because view-keymap is usually defined as a constant:
>>
>>   (set-car! (assoc "r" view-keymap) "F5")
> Yes, I've tried. This works also from gschem's resource file!

If that works for you, I would stick with that.  Just know that the
way it's written, if, e.g., "r" is not in the key map, you'll get an
error.

> Thanks Dean!

You're welcome!

Dean


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user