How to get GNU Emacs authentication to find a user's personal dictionary on OSX?

I switched from Aquamacs to GNU Emacs. Previously, when Aquamacs thought the word was spelled incorrectly, I could right-click on Learn Spelling. (I also had the opportunity to ignore spelling to make it unblock the word for this buffer only.)

In GNU Emacs, I use flyspell-mode with ispell, and aspell as a dictionary. But I notice that the words that I previously added to my dictionary (for example, my name) are marked as erroneous.

How do I get GNU Emacs to find and use a personal word list that I have already created? Can I do this without, for example, creating Aquamacs from a source?

+2
source share
1 answer

Here are my notes on setting up Aspell for OSX and Windows - instructions for setting up a user's personal dictionary are outlined in the stream of this link:

fooobar.com/questions/1485212 / ...

A personal word list in Aspell is a flat text file that contains content that looks like this, and you can insert any word manually - including, but not limited to, copying the contents of your list from your own OSX ~/Library/Spelling/LocalDictionary instance ~/Library/Spelling/LocalDictionary :

 personal_ws-1.1 en 79 lawlist realleges parte 

And, in my .emacs , I use (adjust your own path accordingly):

 (require 'ispell) (require 'flyspell) (setq-default ispell-program-name "/Users/HOME/.0.data/.0.emacs/elpa/bin/aspell") (setq flyspell-default-dictionary "english") (setq ispell-dictionary "english") 

This is the function that I use to switch between Spanish and English:

 (defun spell (choice) "Switch between language dictionaries." (interactive "cChoose: (1) English | (2) EspaΓ±ol") (cond ((eq choice ?1) (setq flyspell-default-dictionary "english") (setq ispell-dictionary "english") (setq ispell-personal-dictionary "/Users/HOME/.0.data/.0.emacs/.aspell.en.pws") (ispell-kill-ispell)) ((eq choice ?2) (setq flyspell-default-dictionary "spanish") (setq ispell-dictionary "spanish") (setq ispell-personal-dictionary "/Users/HOME/.0.data/.0.emacs/.aspell.es.pws") (ispell-kill-ispell)) (t (message "No changes have been made."))) ) 

On Windows, I use:

 (setq-default ispell-program-name "c:/Program Files/Aspell/bin/aspell.exe") 
+4
source

Source: https://habr.com/ru/post/1485207/


All Articles