Remove useless functions.
Fix insert spaces hotkey.
define-kbd-key cause an error on overwriting existing keys.
Adopt magit-status-mode and comint-mode to this behaviour.