unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Novice question: my add-hook binding for c-mode doesnt work :(
@ 2005-12-01 11:08 Kpoxman (sent by Nabble.com)
  2005-12-02  6:52 ` Xavier Maillard
  0 siblings, 1 reply; 11+ messages in thread
From: Kpoxman (sent by Nabble.com) @ 2005-12-01 11:08 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 586 bytes --]


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:
http://www.nabble.com/Novice-question%3A-my-add-hook-binding-for-c-mode-doesnt-work-%3A%28-t651747.html#a1732372

[-- Attachment #1.2: Type: text/html, Size: 864 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <mailman.17480.1133437995.20277.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2005-12-04 16:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-01 11:08 Novice question: my add-hook binding for c-mode doesnt work :( Kpoxman (sent by Nabble.com)
2005-12-02  6:52 ` Xavier Maillard
2005-12-02  7:07   ` Henrik Enberg
2005-12-02  9:10     ` Kpoxman (sent by Nabble.com)
     [not found]     ` <mailman.17607.1133515063.20277.help-gnu-emacs@gnu.org>
2005-12-03  2:07       ` Stefan Monnier
2005-12-03 21:15       ` Alan Mackenzie
2005-12-04 15:48         ` Stefan Monnier
2005-12-04 16:05         ` Matthieu Moy
     [not found] <mailman.17480.1133437995.20277.help-gnu-emacs@gnu.org>
2005-12-01 13:45 ` Anselm Helbig
2005-12-01 16:18 ` Thien-Thi Nguyen
2005-12-01 16:56 ` Johan Bockgård

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).