unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jason Dufair <jase@dufair.org>
Subject: Re: expand/collapse{} in c++
Date: Fri, 26 Aug 2005 17:00:16 -0500	[thread overview]
Message-ID: <7quhddcicjz.fsf@1078-ARIBA-004.central.purdue.lcl> (raw)
In-Reply-To: 87fyswfniv.fsf@wash.edu

Baloff <washdc@XXX> writes:

> in a .emacs-c++ file to be loaded from inside .emacs, I have
> (local-set-key [f4] "\C-c @ \C-c") ;toggles block hide/show
>
> restart emacs, when I open .cpp file, f4 does nothing.

First, the 2nd argument to 'local-set-key should be a function
definition, not another set of key bindings.  Use C-h k to see what
function "C-c@C-c" calls and use that function name as your second
argument.


Also, local-set-key only works on the current local keymap.  If you only
want that binding available in c++-mode, you probably have set the
binding in the mode hook
-- 
Jason Dufair - jase@dufair.org
http://www.dufair.org/
***The above does not represent the views of my employer(s),
except for the bit about the cows.

  parent reply	other threads:[~2005-08-26 22:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-23 20:00 expand/collapse{} in c++ Baloff
2005-08-23 20:31 ` Gnus threading (was: expand/collapse{} in c++) Jason Dufair
2005-08-24 17:36   ` Baloff
2005-08-24 19:22     ` Gnus threading Johan Bockgård
2005-08-23 20:47 ` expand/collapse{} in c++ Sébastien Kirche
2005-08-23 21:59 ` Alan Mackenzie
2005-08-26 20:31   ` Baloff
2005-08-26 21:56     ` Peter Lee
2005-08-26 22:00     ` Jason Dufair [this message]
2005-08-26 22:39       ` Kevin Rodgers
     [not found]       ` <mailman.5188.1125098056.20277.help-gnu-emacs@gnu.org>
2005-08-27  8:31         ` Baloff
2005-08-24  3:32 ` Eli Zaretskii

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=7quhddcicjz.fsf@1078-ARIBA-004.central.purdue.lcl \
    --to=jase@dufair.org \
    /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).