Використання програми перевірки правопису Hunspell
First of all, you should install hunspell and after that add Greek Dictionary
sudo apt install hunspell
Завантажте та додайте грецький словник до шляху словників Hunspell
cp el_GR.dic el_GR.aff /usr/share/hunspell
Давайте перевіримо Hunspell на терміналі:
hunspell -d el_GR
а потім помилково введіть грецьке слово.
Secondly, it be required ispell and flycheck emacs' packages as also a bit configuration in init.el
Додайте грецький та англійський dic до місцевого словника ispell
(require 'ispell)
(add-to-list 'ispell-local-dictionary-alist '("greek-hunspell"
"[[:alpha:]]"
"[^[:alpha:]]"
"[']"
t
("-d" "el_GR"); Dictionary file name
nil
iso-8859-1))
(add-to-list 'ispell-local-dictionary-alist '("english-hunspell"
"[[:alpha:]]"
"[^[:alpha:]]"
"[']"
t
("-d" "en_US")
nil
iso-8859-1))
(setq ispell-program-name "hunspell" ; Use hunspell to correct mistakes
ispell-dictionary "english-hunspell") ; Default dictionary to use
Визначте функцію перемикання словників
(defun fd-switch-dictionary()
"Switch greek and english dictionaries."
(interactive)
(let* ((dict ispell-current-dictionary)
(new (if (string= dict "greek-hunspell") "english-hunspell"
"greek-hunspell")))
(ispell-change-dictionary new)
(message "Switched dictionary from %s to %s" dict new)))
(global-set-key (kbd "") 'fd-switch-dictionary)
Відкрийте текстовий файл у emacs, використовуючи F8 для перемикання словника, а потім включіть незначний режим flyspell
M-x flyspell-mode
Я сподіваюся, що це допоможе.