diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2021-01-21 11:45:44 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2021-01-21 11:45:44 +0100 |
| commit | 9d52f5ad672d2b17e26a29989d105a35b1d2fcb7 (patch) | |
| tree | 19ef437ec7f893553833eca8a1fa61e19ab6e541 /.emacs.d/init.org | |
| parent | 8f518ce3832db45ea25afd8ad548a16b6f579ca3 (diff) | |
| download | dotfiles-9d52f5ad672d2b17e26a29989d105a35b1d2fcb7.tar.gz dotfiles-9d52f5ad672d2b17e26a29989d105a35b1d2fcb7.zip | |
emacs: added wucuo
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à <msabate@suse.com>
Diffstat (limited to '.emacs.d/init.org')
| -rw-r--r-- | .emacs.d/init.org | 23 |
1 files changed, 4 insertions, 19 deletions
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 =<f8>= for checking words, and =M-<f8>= for moving into the next highlighted word: |
