From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Paulo J. Matos" Newsgroups: gmane.emacs.help Subject: Toggle Keybinding Date: Sun, 30 Jul 2006 10:32:31 +0100 Message-ID: <11b141710607300232l28202a8aw2f1c0bf3122c62e2@mail.gmail.com> Reply-To: pocm@sat.inesc-id.pt NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154251992 12160 80.91.229.2 (30 Jul 2006 09:33:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Jul 2006 09:33:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 30 11:33:01 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 1G77fB-0002Ld-T5 for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Jul 2006 11:32:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G77fB-0005qo-Eh for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Jul 2006 05:32:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G77f0-0005qj-An for help-gnu-emacs@gnu.org; Sun, 30 Jul 2006 05:32:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G77ey-0005oj-Ux for help-gnu-emacs@gnu.org; Sun, 30 Jul 2006 05:32:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G77ey-0005oY-MH for help-gnu-emacs@gnu.org; Sun, 30 Jul 2006 05:32:32 -0400 Original-Received: from [66.249.92.169] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G77hN-0008Bl-UE for help-gnu-emacs@gnu.org; Sun, 30 Jul 2006 05:35:02 -0400 Original-Received: by ug-out-1314.google.com with SMTP id u2so305439uge for ; Sun, 30 Jul 2006 02:32:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=VZ5q0+2CXtOognYn+Mp19bBVy+go0V1sAcen7E7YzZXLJV7bMMcUwBX0G9swy8eNYpBhAv2dkgx/ifkDPHYI9hfXA1nvpfRPThgwd4esCs22z74CIVkjwSl+F3qfLlnrZhHtb58IxpKtzmfurEBIK0QMIU0qZGhHdnKeb9JLS94= Original-Received: by 10.78.185.15 with SMTP id i15mr262245huf; Sun, 30 Jul 2006 02:32:31 -0700 (PDT) Original-Received: by 10.78.126.20 with HTTP; Sun, 30 Jul 2006 02:32:31 -0700 (PDT) Original-To: help-gnu-emacs@gnu.org Content-Disposition: inline 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:36380 Archived-At: Hi, I'm setting in .emacs (cvs-emacs) the following: (add-hook 'c++-mode-hook 'hs-minor-mode) (add-hook 'c++-mode-hook (lambda () (local-set-key "M-+" 'hs-toggle-hiding))) For some reason the keybinding is not working. But if I do local-set-key in emacs everything seems to go fine! :-) Any ideas? Should the + in "M-+" be escaped somehow? -- Paulo Jorge Matos - pocm at sat inesc-id pt Web: http://sat.inesc-id.pt/~pocm Computer and Software Engineering INESC-ID - SAT Group