[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: search -> replace -> global keymap?
From: |
Danny YUE |
Subject: |
Re: search -> replace -> global keymap? |
Date: |
Thu, 09 Mar 2017 21:23:00 +0800 |
User-agent: |
mu4e 0.9.18; emacs 25.2.1 |
Sharon,
I suspect you typed "k" twice?
"C-h k" is used for describing a key stroke, so it takes a single key or
a bound key combination and tells you what they are bound to.
In order to get a list of all the key bindings, you invoke:
"M-x describe-bindings" or just "C-h b".
You can use "C-h ?" for a list of valid commands.
Emacs has a good help system, use it wisely! :-)
Danny
Sharon Kimble writes:
> 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'
> 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.
- search -> replace -> global keymap?, Sharon Kimble, 2017/03/08
- RE: search -> replace -> global keymap?, Drew Adams, 2017/03/08
- Re: search -> replace -> global keymap?, Sharon Kimble, 2017/03/09
- Re: search -> replace -> global keymap?,
Danny YUE <=
- RE: search -> replace -> global keymap?, Drew Adams, 2017/03/09
- Re: search -> replace -> global keymap?, Sharon Kimble, 2017/03/09
- Re: search -> replace -> global keymap?, Nick Dokos, 2017/03/09
- Re: search -> replace -> global keymap?, Sharon Kimble, 2017/03/10
- Re: search -> replace -> global keymap?, Danny YUE, 2017/03/10
- Re: search -> replace -> global keymap?, Yuri Khan, 2017/03/09