unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Sharon Kimble <boudiccas@skimble.plus.com>,
	help-emacs <help-gnu-emacs@gnu.org>
Subject: RE: search -> replace -> global keymap?
Date: Wed, 8 Mar 2017 10:42:05 -0800 (PST)	[thread overview]
Message-ID: <1a33d696-77d1-44af-bccf-efd6690f7202@default> (raw)
In-Reply-To: <87mvcv39lz.fsf@skimble.plus.com>

> 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.



  reply	other threads:[~2017-03-08 18:42 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 [this message]
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
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=1a33d696-77d1-44af-bccf-efd6690f7202@default \
    --to=drew.adams@oracle.com \
    --cc=boudiccas@skimble.plus.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).