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:41:43 -0500 Message-ID: References: <51240A2C.7070206@mousecar.com> <512428A9.6010003@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 1361324548 9294 80.91.229.3 (20 Feb 2013 01:42:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2013 01:42:28 +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:42:49 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 1U7yhs-0004IE-Bm for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Feb 2013 02:42:48 +0100 Original-Received: from localhost ([::1]:40624 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7yhY-0000zt-6i for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Feb 2013 20:42:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7yhL-0000z3-Uv for help-gnu-emacs@gnu.org; Tue, 19 Feb 2013 20:42:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7yhK-0003SA-Ny for help-gnu-emacs@gnu.org; Tue, 19 Feb 2013 20:42:15 -0500 Original-Received: from mail-vc0-f175.google.com ([209.85.220.175]:64541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7yhK-0003S0-HN for help-gnu-emacs@gnu.org; Tue, 19 Feb 2013 20:42:14 -0500 Original-Received: by mail-vc0-f175.google.com with SMTP id fw7so4686208vcb.6 for ; Tue, 19 Feb 2013 17:42:14 -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=0i/8f5bc5ZlO9UPvUL/1VYF9MSNbxImWffN2YyjK/eg=; b=AITQpJTA66oILWmLG3BDa2bXIwKjLCbs32Rqjrh6NnevqhqPRrIE/O/Asr30lnqU6P bHo3isHOFLwPiHHBiGMMu87Jx/6FX7aHMNsTr8hI/YVkXlK+M8KwYtbK52SR0QeZt6ZF dI2FxhBzMr8IJaYS1rvni4p3wBWDOUlJyN3ELQrQIlsIgYhxoPvLRXyJzusfJ2nWp3bw zidx/AN+iDrx9MAJl6OqlPghFYbsWS2CZGA1lW9a+eS/6HGUfSslyEhhNkTMT4ANHFId xI8TpumN6AdbM5wGd/NH8qIuQFN0XTZq9rPWo6X74qGEJFkMrk3Zrvcqey7laB3TH+Li +Srg== X-Received: by 10.220.154.199 with SMTP id p7mr23191739vcw.48.1361324533984; Tue, 19 Feb 2013 17:42:13 -0800 (PST) Original-Received: by 10.220.215.209 with HTTP; Tue, 19 Feb 2013 17:41:43 -0800 (PST) In-Reply-To: <512428A9.6010003@mousecar.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.175 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:89170 Archived-At: On Tue, Feb 19, 2013 at 8:36 PM, ken wrote: > On 02/19/2013 08:20 PM Tim Visher wrote: >> 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 >>> create >>> 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 >>> want >>> "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 >>> particular >>> 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. > > Thanks much for the reply. I have almost no idea what you said, but it g= ot > me to try the code which I already wrote (which I didn't do before becaus= e I > didn't think it would work, thought sure there was something missing). T= he > code I already wrote and left sitting there untested for a couple-three > hours... it works!! > > Well that's a completely new experience for me. B^D LOL. Good to know. As an aside, what are you confused about regarding what I said? Maybe I can help clear some things up for you? -- In Christ, Timmy V. http://blog.twonegatives.com/ http://five.sentenc.es/ -- Spend less time on mail