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/custom.el | 2 +- .emacs.d/init.org | 23 ++++------------------- 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/.emacs.d/custom.el b/.emacs.d/custom.el index 9d3889f..4941810 100644 --- a/.emacs.d/custom.el +++ b/.emacs.d/custom.el @@ -13,7 +13,7 @@ '(magit-log-arguments '("--graph" "--color" "--decorate" "-n256")) '(markdown-command "/usr/bin/markdown-calibre") '(package-selected-packages - '(groovy-mode adoc-mode gitignore-mode gitconfig-mode gitattributes-mode evil-escape all-the-icons js-mode let-alist doom-modeline evil-collection highlight-numbers langtool clang-format+ keycast gif-screencast py-autopep8 elpy inf-ruby move-text git-timemachine debbugs async-await request emojify auctex diminish bats-mode bool-flip salt-mode flycheck-rust rust-playground rust-mode vue-mode coffee-mode json-reformat erc-hl-nicks emoji-cheat-sheet-plus helm-circe htmlize cmake-mode websocket markdown-mode go-mode magit evil-leader evil helm projectile org-eldoc evil-commentary yasnippet yaml-mode which-key web-mode wc-mode use-package terraform-mode smart-tabs-mode slim-mode scss-mode rainbow-delimiters php-mode org-evil olivetti mu4e-alert mmm-jinja2 markdown-preview-mode helm-projectile helm-ag go-eldoc go-add-tags flycheck evil-surround evil-org evil-numbers evil-magit evil-args dockerfile-mode disable-mouse default-text-scale crux cmake-font-lock ag))) + '(wucuo groovy-mode adoc-mode gitignore-mode gitconfig-mode gitattributes-mode evil-escape all-the-icons js-mode let-alist doom-modeline evil-collection highlight-numbers langtool clang-format+ keycast gif-screencast py-autopep8 elpy inf-ruby move-text git-timemachine debbugs async-await request emojify auctex diminish bats-mode bool-flip salt-mode flycheck-rust rust-playground rust-mode vue-mode coffee-mode json-reformat erc-hl-nicks emoji-cheat-sheet-plus helm-circe htmlize cmake-mode websocket markdown-mode go-mode magit evil-leader evil helm projectile org-eldoc evil-commentary yasnippet yaml-mode which-key web-mode wc-mode use-package terraform-mode smart-tabs-mode slim-mode scss-mode rainbow-delimiters php-mode org-evil olivetti mu4e-alert mmm-jinja2 markdown-preview-mode helm-projectile helm-ag go-eldoc go-add-tags flycheck evil-surround evil-org evil-numbers evil-magit evil-args dockerfile-mode disable-mouse default-text-scale crux cmake-font-lock ag))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. 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