define-derived-mode itself creates a layout called MODE-map, where MODE is the name of the newly defined keyboard layout. I'm not sure that derive-mode-set-keymap does not yet do this with define-derived-mode ; looking at the source, they do similar things, and I'm not sure about the differences at the lowest level between them (for example, define-derived-mode leaves the parent define-derived-mode key card as the parent of the new keyboard layout while the βdata setβ is -keymap also combines keyboard layouts, and what is the functional difference between them?).
If you do the following:
(define-derived-mode foobar-mode text-mode "foo")
Then the following variables will be defined:
foobar-mode-abbrev-tablefoobar-mode-hookfoobar-mode-mapfoobar-mode-syntax-table
Then you can start manipulating any of them as you like.
Joe casadonte
source share