unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Kpoxman (sent by Nabble.com)" <lists@nabble.com>
Subject: Re: Novice question: my add-hook binding for c-mode doesnt work :(
Date: Fri, 2 Dec 2005 01:10:36 -0800 (PST)	[thread overview]
Message-ID: <1749159.post@talk.nabble.com> (raw)
In-Reply-To: <20051202070701.B40573F28@rocksteady.printf.se>


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


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

[-- Attachment #1.2: Type: text/html, Size: 620 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

  reply	other threads:[~2005-12-02  9:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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) [this message]
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1749159.post@talk.nabble.com \
    --to=lists@nabble.com \
    --cc=avoidq3@mail.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).