* How to bind to M-"
@ 2009-01-28 18:27 Mirko
2009-01-28 19:16 ` Teemu Likonen
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Mirko @ 2009-01-28 18:27 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
I would like to bind a command to the Escape + quote `"' character
sequency.
I tried a few combinations of "M-" and \", ?\", but none work. What
is the official way?
Since we are at it, how would one create a string of five double
quotes using make-string:
I tried
(make-string 5 \")
Thank you,
Mirko
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to bind to M-"
2009-01-28 18:27 How to bind to M-" Mirko
@ 2009-01-28 19:16 ` Teemu Likonen
2009-01-29 1:09 ` Kevin Rodgers
[not found] ` <mailman.6126.1233191412.26697.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 5+ messages in thread
From: Teemu Likonen @ 2009-01-28 19:16 UTC (permalink / raw)
To: help-gnu-emacs
Mirko (2009-01-28 10:27 -0800) wrote:
> I would like to bind a command to the Escape + quote `"' character
> sequency.
>
> I tried a few combinations of "M-" and \", ?\", but none work. What is
> the official way?
This works:
(kbd "M-\"")
> Since we are at it, how would one create a string of five double
> quotes using make-string:
> I tried
>
> (make-string 5 \")
The input must be an integer so we use "?" form:
(make-string 5 ?\")
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to bind to M-"
2009-01-28 18:27 How to bind to M-" Mirko
2009-01-28 19:16 ` Teemu Likonen
@ 2009-01-29 1:09 ` Kevin Rodgers
[not found] ` <mailman.6126.1233191412.26697.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 5+ messages in thread
From: Kevin Rodgers @ 2009-01-29 1:09 UTC (permalink / raw)
To: help-gnu-emacs
Mirko wrote:
> Hello,
>
> I would like to bind a command to the Escape + quote `"' character
> sequency.
>
> I tried a few combinations of "M-" and \", ?\", but none work. What
> is the official way?
"\e\""
> Since we are at it, how would one create a string of five double
> quotes using make-string:
> I tried
>
> (make-string 5 \")
(make-string 5 ?\")
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <mailman.6126.1233191412.26697.help-gnu-emacs@gnu.org>]
* Re: How to bind to M-"
[not found] ` <mailman.6126.1233191412.26697.help-gnu-emacs@gnu.org>
@ 2009-01-29 1:24 ` Pascal J. Bourguignon
2009-01-31 4:10 ` Kevin Rodgers
0 siblings, 1 reply; 5+ messages in thread
From: Pascal J. Bourguignon @ 2009-01-29 1:24 UTC (permalink / raw)
To: help-gnu-emacs
Kevin Rodgers <kevin.d.rodgers@gmail.com> writes:
> Mirko wrote:
>> Hello,
>> I would like to bind a command to the Escape + quote `"' character
>> sequency.
>> I tried a few combinations of "M-" and \", ?\", but none work.
>> What
>> is the official way?
>
> "\e\""
I always use kbd: (kbd "ESC \"")
But don't you prefer M-" ? (kbd "M-\"")
>> Since we are at it, how would one create a string of five double
>> quotes using make-string:
>> I tried
>> (make-string 5 \")
>
> (make-string 5 ?\")
--
__Pascal Bourguignon__
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to bind to M-"
2009-01-29 1:24 ` Pascal J. Bourguignon
@ 2009-01-31 4:10 ` Kevin Rodgers
0 siblings, 0 replies; 5+ messages in thread
From: Kevin Rodgers @ 2009-01-31 4:10 UTC (permalink / raw)
To: help-gnu-emacs
Pascal J. Bourguignon wrote:
> Kevin Rodgers <kevin.d.rodgers@gmail.com> writes:
>
>> Mirko wrote:
>>> Hello,
>>> I would like to bind a command to the Escape + quote `"' character
>>> sequency.
>>> I tried a few combinations of "M-" and \", ?\", but none work.
>>> What
>>> is the official way?
>> "\e\""
>
> I always use kbd: (kbd "ESC \"")
I sometimes do. The only 2 examples in my .emacs are
(kbd "<C-M-backspace>") and (kbd "<C-M-delete>"). But
in general it's easier for me to understand the rules
for reading key sequences than the rules for printing
key sequences.
> But don't you prefer M-" ? (kbd "M-\"")
Yes, I do. But Mirko specifically asked for Escape.
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-01-31 4:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-28 18:27 How to bind to M-" Mirko
2009-01-28 19:16 ` Teemu Likonen
2009-01-29 1:09 ` Kevin Rodgers
[not found] ` <mailman.6126.1233191412.26697.help-gnu-emacs@gnu.org>
2009-01-29 1:24 ` Pascal J. Bourguignon
2009-01-31 4:10 ` Kevin Rodgers
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).