From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: search -> replace -> global keymap? Date: Thu, 09 Mar 2017 12:59:48 +0000 Message-ID: <87r326a9mj.fsf@skimble.plus.com> References: <87mvcv39lz.fsf@skimble.plus.com> <1a33d696-77d1-44af-bccf-efd6690f7202@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1489064422 24518 195.159.176.226 (9 Mar 2017 13:00:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 9 Mar 2017 13:00:22 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: help-emacs To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 09 14:00:13 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clxfx-0005Gb-47 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Mar 2017 14:00:13 +0100 Original-Received: from localhost ([::1]:33719 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clxg1-0007Zv-DK for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Mar 2017 08:00:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clxfT-0007Zp-UN for help-gnu-emacs@gnu.org; Thu, 09 Mar 2017 07:59:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clxfQ-0004Yf-To for help-gnu-emacs@gnu.org; Thu, 09 Mar 2017 07:59:44 -0500 Original-Received: from avasout07.plus.net ([84.93.230.235]:39225) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1clxfQ-0004Xr-Mk for help-gnu-emacs@gnu.org; Thu, 09 Mar 2017 07:59:40 -0500 Original-Received: from london.london ([51.7.106.233]) by avasout07 with smtp id tozb1u001529ot701ozcPq; Thu, 09 Mar 2017 12:59:36 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=Y8KIilWN c=1 sm=1 tr=0 a=E49OrRtc5+dUs92J+03Wog==:117 a=E49OrRtc5+dUs92J+03Wog==:17 a=yPCof4ZbAAAA:8 a=LlzXLoV6AAAA:8 a=iI7HsYTVAAAA:8 a=bAHfVwKlAAAA:8 a=iY5rFIfM-imI9PMRmcAA:9 a=qbo3rYk1GKK9D0Zk:21 a=gNoRggresNE5JM4o:21 a=B27CuRoI57nrAHOIV_AA:9 a=ONNS8QRKHyMA:10 a=2lfDSYhZ3Z6b8uxcDO-Z:22 a=diwpeB1DDhFXqWA7J4Up:22 a=KxyM1Xthmv57RbWRIpnN:22 a=fjrkRJ71zQ2jzMzczd-K:22 X-AUTH: skimble@:2500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 84.93.230.235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:112480 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Drew Adams writes: >> I'm using a certain command very often from the menus and using my >> mouse. It is 'search -> replace -> global' but how can I assign a keymap >> to it please so that I'm able to call it from within my document please? > > What menu is that (I don't see it)? > > Anyway, do this: `C-h k' followed by picking the menu item that you > want to assign a key to. That will tell you what the command is > that that menu item invokes. > > Then do `C-h w' followed by that command name, to see if it is > already on a keyboard key sequence, in addition to being bound > to that menu item. > > If it has no keyboard binding, give it one, using `global-set-key'. > > You can use `M-x global-set-key' interactively, to try it out. > You can use `(global-set-key (kbd "...") 'COMMAND)' in your init > file to get the binding persistently, where "..." is the key > sequence you want and COMMAND is the command you want to bind > it to. Thanks for this Drew. To find what I'm talking about 'Menu-bar -> Search -> Replace -> Global' and the command that it generates is 'replace-string'. So I've assigned a keyboard binding to it and its now working well, thanks. But this problem has thrown up a difficulty for me, in that I can't use 'C-h k'! If I try it it always just shows the 'k', and ditto 'C-h w'! How can I find what it has been mapped to please? Thanks Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk DrugFacts =3D http://www.drugfacts.org.uk=20=20 Debian 8.6, fluxbox 1.3.5-2, emacs 25.1.1.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYwVHEAAoJEDaBgBkK+INb3BEP/jccufMzWVKxTRintVBwIayc jgRXB5gxdq7rQMG0j0tQ0CaZnps3kIQbVgRxFPCzMEBny/M3qBs/jBdEvWQb7bY6 EBw6mSQAXDoEQysVdz5yeBssfUrQg32TTAbGi1EARJKzQB8hlTZ/S92kTRi3CJDW RgdIjnLzKPYwqCpBk/drTL6aumzWt+Zd0P5McUR0/A3KeiekkOujQT19XaVaeu41 YKsGzeWK2MNFL+RqpyAWihbRF+R6WQmYWabXa7GfjW2Qpf4QDLYu7B/gg+1HG6lJ sZfXk1dVdAt+DBGlEJMcCDKRdeeACOOueeRQfl+yrMDTeBqiq3reWc6dfczNlNfc Ew5CcQtRCOxWQPHZlWvUpVWXLLvWpq48//KHPMRPFoVdHVsfEW2VlaOpMfuQZhiw +JRyf0T3nnDlh6MksKUgHQftPujeCmi4M7SGE3w/y5A9st5qfMWWxFT1dcztvHSz Yn6RIF1VSOzxwXMlqV/QGx6I98hND1dKuT2z40jFkaLzzuhuY6KUjCVtCt31Y2jk tjuj0mSojMaertYVh7ICDa5JLBaTfDjUHYR5wmWaieKK9UjrGayMA3G+Ki7gn4yH lTFTQvljZtgGODg+VatM7+/UIIqcoBxhWal50xzWb9Oopb8d53TOhmyMUurxQQgB IwDtqGWTloivcaL3Q9rS =IOPA -----END PGP SIGNATURE----- --=-=-=--