From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: create new key prefix Date: Tue, 19 Feb 2013 20:36:41 -0500 Message-ID: <512428A9.6010003@mousecar.com> References: <51240A2C.7070206@mousecar.com> Reply-To: gebser@mousecar.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1361324234 6706 80.91.229.3 (20 Feb 2013 01:37:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2013 01:37:14 +0000 (UTC) Cc: GNU Emacs List To: Tim Visher Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 20 02:37:36 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 1U7ycp-0001sv-FD for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Feb 2013 02:37:35 +0100 Original-Received: from localhost ([::1]:38985 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7ycU-0008Ki-0w for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Feb 2013 20:37:14 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7ycM-0008Iy-8B for help-gnu-emacs@gnu.org; Tue, 19 Feb 2013 20:37:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7yc5-0002DO-BF for help-gnu-emacs@gnu.org; Tue, 19 Feb 2013 20:36:51 -0500 Original-Received: from mout.perfora.net ([74.208.4.194]:58197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7yc5-0002Cz-59 for help-gnu-emacs@gnu.org; Tue, 19 Feb 2013 20:36:49 -0500 Original-Received: from dellap.mousecar.net (dsl093-011-016.cle1.dsl.speakeasy.net [66.93.11.16]) by mrelay.perfora.net (node=mrus4) with ESMTP (Nemesis) id 0M5dE8-1V5aTr0nXM-00xSL2; Tue, 19 Feb 2013 20:36:46 -0500 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130110 Thunderbird/10.0.12 In-Reply-To: X-Provags-ID: V02:K0:pndQe11xn1P6ITyfv2NlzdcYYNsJ71NJQDM/+n+N2ML A6/byZLyWIfkYBNNCy3zcL63FHAL5RviKStLWavOawVjd4Z3GF IhA+8W07QRkH1sTpiVz4VeTaLP3MqkUldF5XdNcj90A7IaxkSH lccDWOA3D4O3WQKG0N5sob2uqzWrJSvk3QT+nUloGyAVkVqmdC QfjFT67STpmr62kVTqcriiiyCgMeOAHYShj2gN8/tg3DuYk1id I2X/RIMrUVsylVDVecDiANKC8+OXxXEv7ScQwIh5vJsL2xOJ7w tVdc+yul0mIsLpFxXNFKFOG1J/0sAS7MhLKCo8oTrDHeUC8/v8 3fuYSvuYsPCkmkBXuufD9gTkUuFNr2Ek9/ZAVqbUI X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 74.208.4.194 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:89169 Archived-At: On 02/19/2013 08:20 PM Tim Visher wrote: > 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 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…` > forms. > > -- > > In Christ, > > Timmy V. Timmy, Thanks much for the reply. I have almost no idea what you said, but it got me to try the code which I already wrote (which I didn't do before because I didn't think it would work, thought sure there was something missing). The 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