From 9d52f5ad672d2b17e26a29989d105a35b1d2fcb7 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 21 Jan 2021 11:45:44 +0100 Subject: emacs: added wucuo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This aleviates a lot of my pains when it comes to dynamic spell checking (it basically just checks spell errors on save instead of every time). Signed-off-by: Miquel Sabaté Solà --- .emacs.d/init.org | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) (limited to '.emacs.d/init.org') diff --git a/.emacs.d/init.org b/.emacs.d/init.org index 386ce8b..eac2600 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -847,25 +847,10 @@ Basic =flycheck= configuration: Enable spell checking generally for any text-related mode: #+BEGIN_SRC elisp -(dolist (hook '(erc-mode-hook org-mode-hook text-mode-hook)) - (add-hook hook (lambda () (flyspell-mode 1)))) -#+END_SRC - -Also check the spelling of comments in programming languages: - -#+BEGIN_SRC elisp -(dolist (mode '(emacs-lisp-mode-hook - inferior-lisp-mode-hook - python-mode-hook - js-mode-hook - go-mode-hook - ruby-mode-hook - rust-mode-hook - php-mode-hook - c-mode-common-hook)) - (add-hook mode - '(lambda () - (flyspell-prog-mode)))) +(use-package wucuo + :ensure t + :hook ((prog-mode . wucuo-start) + (text-mode . wucuo-start))) #+END_SRC Let's use == for checking words, and =M-= for moving into the next highlighted word: -- cgit v1.2.3