23

In Emacs, where is ispell's personal dictionary stored?, the documentation http://www.gnu.org/software/emacs/manual/html_node/emacs/Spelling.html says

Your personal dictionary is specified by the variable ispell-personal-dictionary. If that is nil, the spelling program looks for a personal dictionary in a default location.

But where is this default location? In general, how to find out this?

qazwsx
  • 569
  • 3
  • 12
  • 1
    Here is an example command-line to dump the aspell configuration from the terminal into output to the terminal screen: `aspell --lang=en dump config` You can setup an `aspell.conf` in the `etc` directory and then store your personal dictionaries wherever you want. – lawlist Oct 09 '15 at 14:16
  • **Ask Emacs**: `C-h v ispell-personal-dictionary` (as @Lompik said). If that doesn't tell you all you need to know, click the link that takes you to the source code, and see what it uses as the default value. – Drew Oct 09 '15 at 14:30

1 Answers1

28

C-h v ispell-personal-dictionary

"File name of your personal spelling dictionary, or nil.
If nil, the default personal dictionary, (\"~/.ispell_DICTNAME\" for ispell or
\"~/.aspell.LANG.pws\" for aspell) is used, where DICTNAME is the name of your
default dictionary and LANG the two letter language code."
Lompik
  • 1,214
  • 10
  • 11
  • 5
    Any idea what does "pws" stands for? – qazwsx Oct 09 '15 at 14:51
  • 1
    I'm not sure what it stands for but it's just the extension of the file. http://aspell.net/man-html/Format-of-the-Personal-and-Replacement-Dictionaries.html – Lompik Oct 09 '15 at 15:29
  • 3
    *"Personal Word Set"*? (i have no clue) – sam boosalis May 10 '19 at 02:50
  • What if there are multiple languages? In hunspell each language has its own `~/.hunspell_es_AR` personal dictionary for each language. Is there still only one personal dictionary for this variable? – sinekonata Apr 06 '20 at 02:42