In arduino-mode the keymap is set as (use-local-map c-mode-map) so it doesn't actually use the arduino-mode-map.
This makes it impossible to define arduino specific keys.
The code should really be (use-local-map arduino-mode-map)
I kinda think this mode should probably have been created using define-derived-mode instead of the template from http://cc-mode.sourceforge.net/derived-mode-ex.el
In
arduino-modethe keymap is set as(use-local-map c-mode-map)so it doesn't actually use thearduino-mode-map.This makes it impossible to define arduino specific keys.
The code should really be
(use-local-map arduino-mode-map)I kinda think this mode should probably have been created using
define-derived-modeinstead of the template from http://cc-mode.sourceforge.net/derived-mode-ex.el