Replace Flyspell with Jinx
This commit is contained in:
parent
f187dfe715
commit
15df2edc2e
1 changed files with 6 additions and 13 deletions
19
init.el
19
init.el
|
@ -800,20 +800,13 @@
|
||||||
(add-hook 'TeX-after-compilation-finished-functions
|
(add-hook 'TeX-after-compilation-finished-functions
|
||||||
#'TeX-revert-document-buffer))
|
#'TeX-revert-document-buffer))
|
||||||
|
|
||||||
(use-package flyspell
|
(use-package jinx
|
||||||
|
:straight t
|
||||||
|
:hook (emacs-startup . global-jinx-mode)
|
||||||
:config
|
:config
|
||||||
(setq ispell-program-name "hunspell")
|
(setq jinx-languages "en_US fr_FR")
|
||||||
(setq ispell-local-dictionary "en_GB")
|
:bind (("M-$" . jinx-correct)
|
||||||
(setq ispell-local-dictionary-alist
|
("C-M-$" . jinx-languages)))
|
||||||
;; 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 "<f8>") 'ispell-word)
|
|
||||||
(global-set-key (kbd "C-S-<f8>") 'flyspell-mode)
|
|
||||||
(global-set-key (kbd "M-<f8>") 'flyspell-buffer)
|
|
||||||
(global-set-key (kbd "C-<f8>") 'flyspell-check-previous-highlighted-word))
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;; External media
|
;;; External media
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue