From 15df2edc2e539b937f26cc6bcafabae8ef154d2f Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Wed, 24 May 2023 17:27:36 +0200 Subject: [PATCH] Replace Flyspell with Jinx --- init.el | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/init.el b/init.el index 148a4e9..88e58b5 100644 --- a/init.el +++ b/init.el @@ -800,20 +800,13 @@ (add-hook 'TeX-after-compilation-finished-functions #'TeX-revert-document-buffer)) -(use-package flyspell +(use-package jinx + :straight t + :hook (emacs-startup . global-jinx-mode) :config - (setq ispell-program-name "hunspell") - (setq ispell-local-dictionary "en_GB") - (setq ispell-local-dictionary-alist - ;; Please note the list `("-d" "en_US")` contains ACTUAL parameters passed to hunspell - ;; You could use `("-d" "en_US,en_US-med")` to check with multiple dictionaries - '(("en_US" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "en_GB") nil utf-8))) - (add-hook 'text-mode-hook #'flyspell-mode) - ;; (add-hook 'prog-mode-hook #'flyspell-prog-mode) - (global-set-key (kbd "") 'ispell-word) - (global-set-key (kbd "C-S-") 'flyspell-mode) - (global-set-key (kbd "M-") 'flyspell-buffer) - (global-set-key (kbd "C-") 'flyspell-check-previous-highlighted-word)) + (setq jinx-languages "en_US fr_FR") + :bind (("M-$" . jinx-correct) + ("C-M-$" . jinx-languages))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; External media