Skip to content

Emacs sample configuration

I successfully use this in Emacs with the following configuration:

(use-package wcheck-mode
  :commands wcheck-mode
  :custom
  (wcheck-language-data
   '(("Malayalam"
      (program . "python3")
      (args "-c" "from mlmorph_spellchecker import SpellChecker
spellchecker = SpellChecker()
while True:
    word = input()
    if spellchecker.spellcheck(word) is False:
        print('%s' % (word))")
      (action-program . "python3")
      (action-args "-c" "from mlmorph_spellchecker import SpellChecker
spellchecker = SpellChecker()
word = input()
print('%s' % '\\n'.join(spellchecker.candidates(word)))")
      (action-parser . wcheck-parser-lines)
      (regexp-body . "[ഀ-ൣ]+?"))))
  (wcheck-language "Malayalam"))

(Dependency: wcheck-mode)

It would be nice if this information was put up somewhere, for the benefit of others.