From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Visher Newsgroups: gmane.emacs.help Subject: Re: Binding ``' in info-mode-only Date: Sat, 27 Feb 2010 11:28:53 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1267288301 2442 80.91.229.12 (27 Feb 2010 16:31:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 27 Feb 2010 16:31:41 +0000 (UTC) Cc: emacs To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 27 17:31:35 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NlPZO-0003c3-6p for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Feb 2010 17:31:35 +0100 Original-Received: from localhost ([127.0.0.1]:49397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NlPXu-0003Jy-Eh for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Feb 2010 11:29:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NlPXb-0003Jj-E3 for help-gnu-emacs@gnu.org; Sat, 27 Feb 2010 11:29:19 -0500 Original-Received: from [140.186.70.92] (port=54869 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NlPXa-0003JQ-6r for help-gnu-emacs@gnu.org; Sat, 27 Feb 2010 11:29:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NlPXX-0000i6-Ez for help-gnu-emacs@gnu.org; Sat, 27 Feb 2010 11:29:16 -0500 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:51482) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlPXX-0000i1-Ar for help-gnu-emacs@gnu.org; Sat, 27 Feb 2010 11:29:15 -0500 Original-Received: by gyf3 with SMTP id 3so718539gyf.0 for ; Sat, 27 Feb 2010 08:29:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=tFs5k7Zxr/yvpV8wlyukimmxayfbX0wytMMkGBcrsVk=; b=MfidTf7KC2VjsfQikx2HlTRujDEKEj2v+Oiswbbgw3TpAM6KRSKFpd0X3M2GUSeAm9 dDh2SPWhUF+7OwZt+JgrtrfIVu+z4Y7aW6EpemYI1fb0P9URigP2A5JfZ9xhw760DtUh do8/a7FOIMv3l1ipfdPz7Wzyot0v289I1KJwI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=dC5LJU0pjdCEmHfhaTMlcAOll0X+eEQ1X/09h7dJsHFxD2kg/FMVYlmwC38lecGDvI W9OSDtH/KFA1f1zNaBEMU3r/xce0l0ifBHWqr/LqPpg2oVpL7eZKCinfih5i81WtZpkz l6/PEYGLQMpyI/+ZfRJ+vIMPvGYnllZFfpvew= Original-Received: by 10.101.155.38 with SMTP id h38mr2853742ano.131.1267288153181; Sat, 27 Feb 2010 08:29:13 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:72213 Archived-At: On Sat, Feb 27, 2010 at 10:50 AM, Drew Adams wrote: >> I'd like to bind the ``' key to `Info-scroll-down` in Info mode only >> I don't want to use (add-hook . '(global-set-key)) because >> that would set the key in all of my other buffers. >> How would I go about doing this? > > (define-key Info-mode-map "`" 'Info-scroll-down) > > No need to use any hook. This is the case for most modes: they have their own > map; you can define keys directly in their maps. > Nice! Thanks so much! -- In Christ, Timmy V. http://burningones.com/ http://five.sentenc.es/ - Spend less time on e-mail