From a5d6f9a88eab2cf41e904472f07679cbf6553742 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 11 Mar 2021 13:44:29 +0100 Subject: [PATCH] Emacs: Add shortcut for flyspell-correct-word for TUI. `C-.` doesn't work in terminal Emacs, so I added `C-c .`. --- init.d/text/common.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.d/text/common.el b/init.d/text/common.el index 089c4ea..2f29ec6 100644 --- a/init.d/text/common.el +++ b/init.d/text/common.el @@ -123,7 +123,8 @@ :bind (("" . my/toggle-flyspell) (:map flyspell-mode-map ("C-;" . nil) ; iedit needs C-;. - ("C-M-i" . nil))) ; imenu-anywhere needs it. + ("C-M-i" . nil) ; imenu-anywhere needs it. + ("C-c ." . flyspell-auto-correct-word))) ; C-. doesn't work in TUI. :hook ((prog-mode . flyspell-prog-mode) ; Spellcheck comments. (text-mode . flyspell-mode) ; Spellcheck text documents ↓. (LaTeX-mode . my/flyspell-german)