Thank you guys! So, the correct code is (I've tested and it works): (add-hook 'c-mode-common-hook '(lambda () (define-key c-mode-base-map (kbd "M-o") 'kpox-switch-h-cpp)) ) -- Sent from the Emacs - Help forum at Nabble.com: http://www.nabble.com/Novice-question%3A-my-add-hook-binding-for-c-mode-doesnt-work-%3A%28-t651747.html#a1749159