From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harald Hanche-Olsen Newsgroups: gmane.emacs.help Subject: Re: Toggle Keybinding Date: Sun, 30 Jul 2006 13:00:58 +0200 Organization: Norwegian university of science and technology Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1154259634 28734 80.91.229.2 (30 Jul 2006 11:40:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Jul 2006 11:40:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 30 13:40:31 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G79en-0004Yb-TH for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Jul 2006 13:40:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G79en-0005L8-BM for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Jul 2006 07:40:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!news2.euro.net!border2.nntp.ams.giganews.com!nntp.giganews.com!uio.no!ntnu.no!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: fiinbeck.math.ntnu.no Original-X-Trace: orkan.itea.ntnu.no 1154257024 18996 129.241.15.140 (30 Jul 2006 10:57:04 GMT) Original-X-Complaints-To: usenet@itea.ntnu.no Original-NNTP-Posting-Date: Sun, 30 Jul 2006 10:57:04 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (berkeley-unix) Cancel-Lock: sha1:Vgd1z5IbJUlIafUAxFI4bBYYb4A= Original-Xref: shelby.stanford.edu gnu.emacs.help:140757 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:36382 Archived-At: + "Paulo J. Matos" : | (add-hook 'c++-mode-hook | (lambda () | (local-set-key "M-+" 'hs-toggle-hiding))) | | For some reason the keybinding is not working. It probably does, but you may have a hard time typing a capital M in the buffer, since M is now a prefix. | Any ideas? Should the + in "M-+" be escaped somehow? No, the M should, in order to be interpreted as meta: "\M-+" should do the trick. You can also use a vector: [?\M-+]. -- * Harald Hanche-Olsen - It is undesirable to believe a proposition when there is no ground whatsoever for supposing it is true. -- Bertrand Russell