From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: search -> replace -> global keymap? Date: Wed, 8 Mar 2017 10:42:05 -0800 (PST) Message-ID: <1a33d696-77d1-44af-bccf-efd6690f7202@default> References: <87mvcv39lz.fsf@skimble.plus.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1488998575 28077 195.159.176.226 (8 Mar 2017 18:42:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 8 Mar 2017 18:42:55 +0000 (UTC) To: Sharon Kimble , help-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 08 19:42:52 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 1clgXw-0006TO-Ok for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Mar 2017 19:42:48 +0100 Original-Received: from localhost ([::1]:57891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clgY2-0003Ma-Ml for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Mar 2017 13:42:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clgXT-0003Km-0F for help-gnu-emacs@gnu.org; Wed, 08 Mar 2017 13:42:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clgXO-0003k8-45 for help-gnu-emacs@gnu.org; Wed, 08 Mar 2017 13:42:19 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:23057) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1clgXN-0003jf-Qp for help-gnu-emacs@gnu.org; Wed, 08 Mar 2017 13:42:14 -0500 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v28IgA2p008215 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 8 Mar 2017 18:42:11 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id v28Ig8WL013195 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 8 Mar 2017 18:42:09 GMT Original-Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v28Ig79P030526; Wed, 8 Mar 2017 18:42:08 GMT In-Reply-To: <87mvcv39lz.fsf@skimble.plus.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 156.151.31.81 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:112466 Archived-At: > 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.