Re: emacs and ispell

#4794
Up
0
Down
::

Ti assicuro che funziona 🙂

purtroppo a me non funzionava (e non ho capito bene perché). comunque ho quasi risolto (in fondo sta la config a cui sono giunto). l’unico problema che ho è che se cerco di aggiungere una parola tipo “felicità” al dizionario (tramite ma modalità ispell di emacs), nel dizionario aggiunge “felicit”. In altre parole ho solo risolto il prob della correzione al volo.
Se invece usassi aspell non avrei problemi, ma sotto la mia debian stable non ci sta il vocabolario di italiano e dovrò provvedere. So che funziona perché sotto win uso cygwin per il quale è disponibile. Avevo pensato di usare ispell per debian e aspell per cygwin, ma i dizionari personali che vengono creati sono incompatibili.

ciao

;; ispell
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;(setq ispell-program-name “aspell”)
(setq ispell-local-dictionary-alist
‘((“my-italian”
“[A-Za-zAEÉIOUàèéìòù]” “[^A-Za-zAEÉIOUàèéìòù]”
“[—‘]” t (“-B” “-d” “italian”) “~tex” iso-8859-1)))
(ispell-change-dictionary “my-italian”)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;; Flyspell
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(autoload ‘flyspell-mode “flyspell” “On-the-fly spelling checker.” t)
(autoload ‘global-flyspell-mode “flyspell” “On-the-fly spelling” t)

(setq flyspell-default-dictionary “my-italian”)

;; Flyspell, to enable likeness criteria
(setq flyspell-sort-corrections nil)

;; Flyspell considers that a word repeated twice is an error (for
;; instance, the second word word is highlighted). This feature can be
;; disable with
(setq flyspell-doublon-as-error-flag nil)

;; Flyspell, per averlo automaticamente con LaTeX
(defun turn-on-flyspell-mode ()
(flyspell-mode 1))
(add-hook ‘LaTeX-mode-hook ‘turn-on-flyspell-mode)
(add-hook ‘tex-mode-hook (function (lambda () (setq ispell-parser ‘tex))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Go to top