Skip to content

Instantly share code, notes, and snippets.

@AyakoGFX
Last active October 9, 2024 15:40
Show Gist options
  • Select an option

  • Save AyakoGFX/f6590eb12d168182daf8f4753e4f5ab0 to your computer and use it in GitHub Desktop.

Select an option

Save AyakoGFX/f6590eb12d168182daf8f4753e4f5ab0 to your computer and use it in GitHub Desktop.
Setup Spell-Check In Emacs "jinx"

Setup Spell-Check In Emacs “jinx”

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-jinx defined in emacs-xyz.scm
  • Nix: jinx defined in elpa-packages.nix
  • Void, Fedora: enchant2-devel, pkgconf
  • OpenSUSE: emacs-jinx or enchant, pkgconf
  • FreeBSD, OpenBSD, Mac: enchant2, pkgconf

e.g in Arch

sudo pacman -S enchant pkgconf ispell

This Is How You Setup

    (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

Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment