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: create new key prefix Date: Tue, 19 Feb 2013 20:20:34 -0500 Message-ID: References: <51240A2C.7070206@mousecar.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1361323278 32234 80.91.229.3 (20 Feb 2013 01:21:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2013 01:21:18 +0000 (UTC) Cc: GNU Emacs List To: gebser@mousecar.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 20 02:21:40 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U7yNP-0003AA-Lb for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Feb 2013 02:21:39 +0100 Original-Received: from localhost ([::1]:34045 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7yN5-0004jL-49 for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Feb 2013 20:21:19 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7yMx-0004j3-Td for help-gnu-emacs@gnu.org; Tue, 19 Feb 2013 20:21:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7yMr-0006lf-Hh for help-gnu-emacs@gnu.org; Tue, 19 Feb 2013 20:21:11 -0500 Original-Received: from mail-ve0-f182.google.com ([209.85.128.182]:60508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7yMr-0006lX-D7 for help-gnu-emacs@gnu.org; Tue, 19 Feb 2013 20:21:05 -0500 Original-Received: by mail-ve0-f182.google.com with SMTP id ox1so6479348veb.13 for ; Tue, 19 Feb 2013 17:21:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=aQIBGgG2v6M7UEUGxjNh3T0DeAzmpdAPWihGh4X0PZ8=; b=DNqILgQbrgOA8jhqDujzo1fd4FHCcHJJOW/zLjrqeTHfKv71VMq3dHjPuT+49RItqx W9/k8BYOFC//W1ooAiUCCplx8KXFZupUzqDziYdYAMbgGDyCRgzVQSNimb4U8a7xVF72 JNix7Z/iyyw4S0OXYJrBN8OK98pj4Zqqd6oFGF78nnT/6FdFxnchKgplT4nfz34VLVW1 5Ub2VRFU2P79EJSoLJntErVGNrb/hN7EeAsykR6bGIwqUJVmtS1gbmAyfgkweUHBz/Zt n1CyW3JRazBoCcizdEAU+nXltOrCoWDq6AAVB7xD9gVMsj5B4OMoIf2y/al58MGsxzEB Lw/w== X-Received: by 10.220.40.9 with SMTP id i9mr23613573vce.23.1361323264622; Tue, 19 Feb 2013 17:21:04 -0800 (PST) Original-Received: by 10.220.215.209 with HTTP; Tue, 19 Feb 2013 17:20:34 -0800 (PST) In-Reply-To: <51240A2C.7070206@mousecar.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.128.182 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89168 Archived-At: Hi Ken, On Tue, Feb 19, 2013 at 6:26 PM, ken wrote: > I've defined quite a few new keys over the years and so would like to cre= ate > a new key prefix. I.e., I want to be able to define keys such as "C-c p = s", > "C-c p m", etc. So how do I tell emacs that (for all possible modes) I w= ant > "C-c p" to look for the new key definitions. > > From what I've read so far, how this is done depends a lot on the particu= lar > emacs version. Mine's 22.1.1. `(global-set-key (kbd "C-c p m") 'func-name)` doesn't work for you? The caveat to that is that modes down the line can possible shadow the binding. But that's easy enough to solve with `(eval-after-load=E2=80=A6` forms. -- In Christ, Timmy V. http://blog.twonegatives.com/ http://five.sentenc.es/ -- Spend less time on mail