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

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

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


From: Johan Bockgård
Subject: Re: Novice question: my add-hook binding for c-mode doesnt work :(
Date: Thu, 01 Dec 2005 17:56:31 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

"Kpoxman (sent by Nabble.com)" <lists@nabble.com> writes:

> 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).

c-mode-base-map
  Variable: Keymap shared by all CC Mode related modes.

c++-mode-map
  Variable: Keymap used in c++-mode buffers.

c-mode-map
  Variable: Keymap used in c-mode buffers.

-- 
Johan Bockgård


reply via email to

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