all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sharon Kimble <boudiccas@skimble.plus.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: help-emacs <help-gnu-emacs@gnu.org>
Subject: Re: search -> replace -> global keymap?
Date: Thu, 09 Mar 2017 18:24:26 +0000	[thread overview]
Message-ID: <87a88u8g11.fsf@skimble.plus.com> (raw)
In-Reply-To: <ed977191-bca9-49dd-bc40-1b859b10ecb5@default> (Drew Adams's message of "Thu, 9 Mar 2017 06:46:27 -0800 (PST)")

[-- Attachment #1: Type: text/plain, Size: 2433 bytes --]

Drew Adams <drew.adams@oracle.com> 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'
>
> I don't see that menu.  You should mention the details about your
> Emacs version/installation.  With `emacs -Q' (no init file) I see
> the Search menu under the Edit menu on the menu-bar.  I see no
> Search menu on the menu-bar.  But it might also depend on what mode
> you are in etc.

Sorry Drew, those details are in my sig at the bottom of all my emails.
The menu-bar is open in every buffer and mode, as I do still use it a
lot.

>
>> and the command that it generates is 'replace-string'. So I've assigned
>> a keyboard binding to it and its now working well, thanks.
>
> Good.  But how did you find which command is bound to it, if `C-h k'
> doesn't work for you?

I used 'F1 k'. Because I can't use 'C-h whatever' I try and use 'F1 whatever'.

>
>> 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?
>
> Others have responded to this question.  Try f1 if C-h doesn't seem
> to work.

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = http://www.drugfacts.org.uk  
Debian 8.6, fluxbox 1.3.5-2, emacs 25.1.1.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

  reply	other threads:[~2017-03-09 18:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-08 18:29 search -> replace -> global keymap? Sharon Kimble
2017-03-08 18:42 ` Drew Adams
2017-03-09 12:59   ` Sharon Kimble
2017-03-09 13:23     ` Danny YUE
2017-03-09 13:52     ` Yuri Khan
2017-03-09 14:46     ` Drew Adams
2017-03-09 18:24       ` Sharon Kimble [this message]
2017-03-09 20:26         ` Nick Dokos
2017-03-10 14:15           ` Sharon Kimble
2017-03-10 14:27             ` Danny YUE

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a88u8g11.fsf@skimble.plus.com \
    --to=boudiccas@skimble.plus.com \
    --cc=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.