diff options
| author | Glenn Morris | 2009-02-24 04:44:19 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-02-24 04:44:19 +0000 |
| commit | cb92c1504455a432e4045d26f407e40256d84a4c (patch) | |
| tree | 06a7b08df9e3aea4053fb1bef7c88c3f65641846 | |
| parent | 2c7d1565548e2cabc2a5f5f8a226b871bedbdcb1 (diff) | |
| download | emacs-cb92c1504455a432e4045d26f407e40256d84a4c.tar.gz emacs-cb92c1504455a432e4045d26f407e40256d84a4c.zip | |
(flyspell-use-meta-tab): Add a custom :set function. (Bug#2429)
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/textmodes/flyspell.el | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 99b3bd7f293..fad9ebecc17 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2009-02-24 Glenn Morris <rgm@gnu.org> | 1 | 2009-02-24 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * textmodes/flyspell.el (flyspell-use-meta-tab): Add a custom | ||
| 4 | :set function. (Bug#2429) | ||
| 5 | |||
| 3 | * eshell/esh-util.el (eshell-parse-ange-ls): Define `name' before | 6 | * eshell/esh-util.el (eshell-parse-ange-ls): Define `name' before |
| 4 | potential use. | 7 | potential use. |
| 5 | 8 | ||
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index 70fd05aaf37..4b9121de94a 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el | |||
| @@ -262,10 +262,17 @@ If `flyspell-large-region' is nil, all regions are treated as small." | |||
| 262 | :group 'flyspell | 262 | :group 'flyspell |
| 263 | :type '(choice string (const nil))) | 263 | :type '(choice string (const nil))) |
| 264 | 264 | ||
| 265 | (defvar flyspell-mode-map) | ||
| 266 | |||
| 265 | (defcustom flyspell-use-meta-tab t | 267 | (defcustom flyspell-use-meta-tab t |
| 266 | "Non-nil means that flyspell uses M-TAB to correct word." | 268 | "Non-nil means that flyspell uses M-TAB to correct word." |
| 267 | :group 'flyspell | 269 | :group 'flyspell |
| 268 | :type 'boolean) | 270 | :type 'boolean |
| 271 | :initialize 'custom-initialize-default | ||
| 272 | :set (lambda (sym val) | ||
| 273 | (define-key flyspell-mode-map "\M-\t" | ||
| 274 | (if (set sym val) | ||
| 275 | 'flyspell-auto-correct-word)))) | ||
| 269 | 276 | ||
| 270 | (defcustom flyspell-auto-correct-binding | 277 | (defcustom flyspell-auto-correct-binding |
| 271 | [(control ?\;)] | 278 | [(control ?\;)] |