help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Novice question: my add-hook binding for c-mode doesnt work :(


From: Kpoxman (sent by Nabble.com)
Subject: Novice question: my add-hook binding for c-mode doesnt work :(
Date: Thu, 1 Dec 2005 03:08:14 -0800 (PST)

The code from .emacs:

(add-hook 'c-mode-common-hook
          '(lambda () (define-key c-mode-map (kbd "M-o") 'kpox-switch-h-cpp))
          )

After I open .CPP file kpox-switch-h-cpp appears in c-mode-map bindings (I checked c-mode-map variable). But pressing M-o doesnt call kpox-switch-h-cpp. An old function from global binding is called (set-face or something similar).

Please advise me what is the problem and how to solve it.

Sent from the Emacs - Help forum at Nabble.com:
Novice question: my add-hook binding for c-mode doesnt work :(
reply via email to

[Prev in Thread] Current Thread [Next in Thread]