You want to define stack-network-mode
using define-derived-mode
(and make it derive from special-mode
, for example).
Other comments about your code:
- use
()
rather thannil
for empty argument lists. - stack-network-next-site needs to have
(interactive)
right after the docstring to make it an interactive command otherwise it won't work as a key-binding.
If you don't want to use special-mode
, you can call supress-keymap
right after creating your make-keymap
.