Hunspell imlo tekshirish dasturidan foydalanish
First of all, you should install hunspell and after that add Greek Dictionary
sudo apt hunspellni o'rnatish
Hunspell lug'atlarining yo'llariga yunoncha lug'atlarni yuklab oling va qo'shing
cp el_GR.dic el_GR.aff /usr/share/hunspell
Hunspell-ni terminalda sinab ko'raylik:
hunspell -d-el_GR
va keyin yunoncha so'zni noto'g'ri yozing.
Secondly, it be required ispell and flycheck emacs' packages as also a bit configuration in init.el
Mahalliy lug'atlarni ispellashtirish uchun yunon va ingliz tillarini qo'shing
(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
Lug'atlarni almashtirish funksiyasini belgilang
(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-da matnli faylni F8-ilovasida oching va flyspell kichik rejimini yoqing
M-x flyspell-mode
Umid qilamanki bu yordam beradi.