There are several packages for spellchecking in Emacs, but I prefer jinx because it’s known for being fast. I recommend giving it a try!
Before installing the jinx package, you need to install its required dependencies. You can do this by:
- Debian, Ubuntu:
libenchant-2-dev,pkgconf - Arch, Gentoo:
enchant,pkgconf - Guix:
emacs-jinxdefined inemacs-xyz.scm - Nix:
jinxdefined inelpa-packages.nix - Void, Fedora:
enchant2-devel,pkgconf - OpenSUSE:
emacs-jinxorenchant,pkgconf - FreeBSD, OpenBSD, Mac:
enchant2,pkgconf
sudo pacman -S enchant pkgconf ispell (use-package jinx
:ensure t
:hook ((LaTeX-mode . jinx-mode)
(latex-mode . jinx-mode)
(markdown-mode . jinx-mode)
(org-mode . jinx-mode)
(text-mode . jinx-mode)
)
;; :hook (emacs-startup . global-jinx-mode) ;; this is to enable globally. that means for all mode
;; :bind ([remap ispell-word] . jinx-correct) ;; this is remaping ispell-word to jinx keys
)
;; Jinx keybindings
(global-set-key (kbd "C-c s s") 'jinx-correct)
(global-set-key (kbd "C-c s n") 'jinx-next)
(global-set-key (kbd "C-c s p") 'jinx-previous)
(global-set-key (kbd "C-c s l") 'jinx-languages)
(global-set-key (kbd "C-c s a") 'jinx-correct-all)
(global-set-key (kbd "C-c s w") 'jinx-correct-word)
(global-set-key (kbd "C-c s N") 'jinx-correct-nearest)you can enable globlely