[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: binding flyspell-correct-word to a key?
From: |
David Hansen |
Subject: |
Re: binding flyspell-correct-word to a key? |
Date: |
Fri, 19 May 2006 20:45:51 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
On Fri, 19 May 2006 09:41:45 -0600 Kevin Rodgers wrote:
> emacs user wrote:
>> would anyone happen to know how to bind flyspell-correct-word to a key
>> under xterm with no X-windows? thanks... EU
>
> You can't, because that command requires an event argument via
> (interactive "e"), and the Emacs Lisp manual explains the
> `e' code:
>
> [...]
>
> Maybe you could define a new command that calls flyspell-correct-word
> with a synthetic generated event, and then bind the new
> command to a key. (The event is passed to mouse-set-point
> and flyspell-emacs-popup,
or just use
,----[ C-h f flyspell-auto-correct-word RET ]
| flyspell-auto-correct-word is an interactive compiled Lisp function in
`flyspell.el'.
| It is bound to C-., M-TAB.
| (flyspell-auto-correct-word)
|
| Correct the current word.
| This command proposes various successive corrections for the current word.
|
`----
David