Questions tagged [ispell]
The ispell tag has no usage guidance.
79
questions
23
votes
1
answer
7k
views
In Emacs, where is ispell's personal dictionary stored?
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 ...
20
votes
2
answers
8k
views
Spell check with multiple dictionaries
How can I use multiple dictionaries with the Emacs spell checker? Specifically I want to use a British English dictionary and a medical English dictionary at the same time.
17
votes
2
answers
857
views
How can I make flyspell ignore urls?
When I use flyspell-mode, it reports spelling errors whenever I type a URL. Is there a way I can tell Flyspell to stop checking URLs?
15
votes
1
answer
2k
views
How can I use Company to spell-check a word?
company-ispell can complete a word at point, but what if you want
to use Company to list the possible corrections for spelling?
As an added bonus, is there any way to integrate this into Flyspell?
11
votes
2
answers
790
views
Pure elisp spell checking in Emacs
The question What options are there for doing spell-checking in emacs discuss various spell checking solutions for Emacs.
Emacs ispell interface uses external tools such as Aspell or Hunspell for ...
9
votes
1
answer
8k
views
Where is ispell?
I just upgraded to Emacs 24 and can't find ispell. If I try to use ispell I get the error message:
Searching for program: no such file or directory, ispell
After a small amount of searching on the ...
9
votes
1
answer
3k
views
call interactive function from elisp code without worrying about arguments
So, I want to do (ispell-change-dictionary) inside a function I'm writing, but doing a test throws this error:
(wrong-number-of-arguments #[(dict &optional arg)
I was told that M-x calls the ...
8
votes
1
answer
1k
views
What is the relationship between Emacs and various spellcheckers (ispell, etc.)?
A. Is there a spellchecker built in to Emacs?
This seems to say that there is a "built-in ispell package" that "handles spell-checking and correction".
The manual (Emacs > Fixit > Spelling > 16.4) ...
8
votes
2
answers
1k
views
How to move back to a previous typo in ispell?
When running M-x ispell, is it possible to go back to the previous typo? For example, I accidentally pass a typo and want to go back to it.
7
votes
1
answer
1k
views
The format of ispell personal dictionary
I'm having difficulty getting flyspell to accept a personal dictionary.
In my .emacs file I have the line:
(setq ispell-personal-dictionary "~/.karpov_dic")
This .karpov_dic file only has a few ...
6
votes
2
answers
753
views
how to install Aquamacs' OSX spellchecker (NSSpellChecker) in GNU Emacs?
Spellcheck in Aquamacs works much better than either the default aspell or the improved hunspell.
Example typo: whtehr
Here are the suggestions provided by the various engines when I do flyspell-...
5
votes
0
answers
2k
views
How to set the Ispell language via a file variable in Org-Mode?
I put the following in the beginning of the Org file:
* :noexport:
Local Variables:
ispell-local-dictionary: "american"
End:
#+EXPORT_EXCLUDE_TAGS: noexport
And I start flyspell via a hook:
(add-...
4
votes
4
answers
2k
views
Error: No word lists can be found for the language "en_US"
I am using GNU Emacs 26.1 on macOS Catalina.
When I try to enable ispell or flycheck-mode I am getting following error:
No word lists can be found for the language "en_US".
=> How could I fix this ...
4
votes
2
answers
1k
views
How to quiet "Starting new Ispell process" on opening every file?
Using flyspell by default is handy, but the message on every file gets annoying (especially since it doesnt go away).
eg:
Starting new Ispell process /usr/bin/aspell with american dictionary...
Is ...
4
votes
2
answers
5k
views
Beginner: Doom Emacs, or Emacs in general: Which program is used for spellcheck-as-you-write in text mode and how to change its dictionary
I am learning how to work with Emacs on Ubuntu 20.04. After going through Tutorial and using default key-bindings for some time, I have decided to test more ergonomic (at least for me) setup - that is ...
4
votes
1
answer
204
views
Ispell + Hunspell recognizes everything after the apostrophe a different word
I'm using flyspell-mode with ispell and hunspell - as the dictionary backend, the problem is: if I type a word, for example you've or you're it recognizes ve and re as individual words. I want to fix ...
4
votes
0
answers
733
views
ispell-phaf no matching entry for en_Gb after update to macOS Sierra
I have update to macOS Sierra after witch spelling in Emacs is broken.
The error I get is (ispell-phaf: No matching entry for en_GB in ´ispell-hunspell-dict-paths-alist´)
I have both install aspell ...
3
votes
1
answer
3k
views
How to use an ispell dictionary in company mode?
I am writing in LaTeX at the moment and I want to use company-mode for word completion. I found this solution: https://emacs.stackexchange.com/a/18522.
I was thinking about using the ispell ...
3
votes
2
answers
350
views
Detect language in buffer
Is it possible to detect and set the correct ispell language based on the contents of the buffer?
And beyond that: A markdown file can contain multiple human languages at the same time, perhaps ...
3
votes
2
answers
219
views
flyspell and ispell give too many spelling suggestions
I'm using flyspell mode with aspell under the hood. Emacs 27.1 installed using Homebrew on macOS Mojave. This behavior happens both with my normal configuration as well as emacs -Q.
I looked through M-...
3
votes
1
answer
469
views
Can I instruct ispell to insert LocalWords in a different file?
Sometimes my LocalWords can get very long. In Org documents, it's awkward to have this 'appendix' of dictionary junk. I'd like to move this to a separate file (.dir-locals.el if possible).
3
votes
1
answer
3k
views
Setting a new location for ispell/aspell dictionaries
I want to synchronize my personal dictionaries between my computers. For this, they should be in a dictionary with only stuff I want to synchronize, preferably in a dictionary in ~/.emacs.d because I'...
3
votes
1
answer
98
views
how to keep my abbrevs table files separate?
I'd like to maintain several distinct abbrevs files for different types of abbreviation expansions.
I have this:
(read-abbrev-file "~/Dropbox/elisp/main-abbrevs-file.abbrev_defs")
(read-abbrev-file ...
3
votes
3
answers
272
views
Check whether a string is spelled correctly
I need to check whether a string is spelled correctly from my ELisp code. This is what I am trying:
(ispell-start-process)
(ispell-send-string "Check this")
(ispell-accept-output)
The last call ...
3
votes
1
answer
4k
views
Error enabling flyspell mode in Emacs
I use flyspell hunspell for checking my spelling mistakes in Emacs. Recently, when I run M-x flyspell-mode in .org or .tex files I got the following error:
Error enabling Flyspell mode:
(hunspell ...
2
votes
2
answers
284
views
Automatically run ispell on magit COMMIT_MSG buffer
I make lots of spelling errors when constructing my commit message.
It would be cool if I could add a hook to magit such that when I execute
C-c C-c, it would run ispell before completing the commit ...
2
votes
2
answers
154
views
Marking as safe all possible lists of strings
Following this answer, I put the following lines in a .dir-locals.el file:
((latex-mode
(TeX-engine . default)
(mode . latex )
(TeX-master . "main")
(ispell-buffer-session-localwords
...
2
votes
1
answer
396
views
call-process and Hunspell (in Emacs 24.4)
I am having problems running ezwinports Hunspell 1.3.2-3 in Emacs 24.4.1 for Windows.
When calling ispell-buffer with debug, I see the following functions are called.
ispell-buffer -> ispell-...
2
votes
2
answers
616
views
How to spellcheck all words in a buffer
Is there a way to make a whole spellcheck in a buffer instead of check every word as you type using flyspell, like using aspell command with a file ?
2
votes
1
answer
696
views
How to prevent ispell from checking inside mathematical formulae
By invoking M-x ispell, ispell says that 'ij' in the following formula is incorrect. How to permanently prevent ispell from this behavior.
$\phi_{ij}$
2
votes
1
answer
702
views
Enabling `flyspell-prog-mode` starts `flyspell-mode` instead
I've been playing with flyspell lately and with my recently established setup for spell-check, I wanted to enable it for all modes. I found that flyspell-mode and flyspell-prog-mode are best for text-...
2
votes
2
answers
460
views
Error when using spell-checker in Portuguese
I wrote a text file in Portuguese. I have changed my dictionary to portugues. I tried to spell-check buffer and I get the following error message:
Starting new Ispell process aspell with portugues ...
2
votes
3
answers
1k
views
Where is ispell private dictionary located on Spacemacs?
My Spacemacs help ispell-personal-dictionary says:
ispell-personal-dictionary is a variable defined in ‘ispell.el’.
Its value is nil
Documentation:
File name of your personal spelling dictionary, or ...
2
votes
1
answer
1k
views
Emacs lisp throwing error when using spell check
I am trying to configure Hunspell in my emacs running in windows. When I type M-x ispell-buffer, I get the following error:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
string-...
2
votes
1
answer
195
views
How do I spell check directly from the magit-status buffer
Question:
Is it possible to run ispell on a region (or the whole diff and nothing else) directly from the magit-status buffer?
Motivation:
I am writing varying amounts of text and often keep it ...
2
votes
1
answer
88
views
cape-dict cape-ispell problem with language
I setup flyspell to use hunspell program (and installed french and english dict with apt cmd). I set ispell-dictionary to
fr_FR, en_GB, en_US
Set ispell-hunspell-add-multi-dic to
fr_FR,en_GB, en_US
...
2
votes
1
answer
41
views
Changes of ispell.el from GNU emacs v27.2 from v26.3?
Recently, I updated my GNU emacs from v26.3 to v27.2. Now, ispell does not work anymore under Windows 10 (on my Macs, it still works). On my Windows machine, I use hunspell, which has been the same v1....
2
votes
0
answers
620
views
ispell personal dictionary for multiple languages
I use hunspell for spellchecking. When I switch dictionaries (e.g., from en_US to hu_HU), I cannot save personal words to my personal dictionary. Emacs complains that
ispell-init-process: Error: ...
2
votes
1
answer
971
views
Ispell not working with Hunspell
I am unable to use Ispell, after the upgrade to Hunspell 1.7.0.
It seems that the "-D" option does not return the loaded dictionary, therefore the function ispell-find-hunspell-dictionaries fails. ...
2
votes
0
answers
521
views
Emacs Ispell to list all spelling errors at once
I am using emacs ispell to look for spelling mistakes. It works well in interactive mode, but I was wondering if I can see all the words with spelling issues highlighted in the buffer itself or ...
1
vote
2
answers
206
views
How can I replace all instances of a mispelled word during ispell?
I can be remarkably consistent with my misspellings some times; in these instances while running ispell, I'd like to be able to hit something like C-u <correction number> (for instance) to ...
1
vote
1
answer
915
views
Changing language with ispell
M-x ispell works fine for English. However, when I try to change the dictionary, I run into difficulties.
I did M-x ispell-change-dictionary and selected one of the options (francais) from the list ...
1
vote
2
answers
340
views
How do I disable Centaur Tabs in ispell Choices buffer
I need to disable the Centaur-Tabs in the Choices buffer of ispell/flyspell. In Centaur Tab's site it says to add a hook, so I tried this:
(add-hook 'ispell-choices-buffer 'centaur-tabs-local-mode)
...
1
vote
1
answer
85
views
Ispell suggested word window too small
When I use ispell, it suggests replacements for misspelled words in a window at the top of the screen. However, it is too small, and I can barely read the words it contains.
How do I increase the ...
1
vote
2
answers
259
views
How to use ispell-word to correct a word immediately without prompting for multiple options?
Since the first option is the right one when fixing a common misspelling. Is there a way to make ispell-word correct the spelling of a word to the first suggestion instead of prompting from a list of ...
1
vote
1
answer
87
views
Reload flyspell after changing ispell dictionary
Whenever I ispell-change-dictionary, I have to disable and re-enable flyspell-mode for flyspell to pick up the new dictionary.
Is there a way to automate this? It probably involves a post-command-hook,...
1
vote
2
answers
755
views
Hunspell not working
I seem to be unable to configure hunspell to work within emacs. I have hunspell 1.7.0 and emacs 25.3. Supposedly, emacs should be able to find hunspell by default, but it seems that it is unable to ...
1
vote
1
answer
833
views
Norwegian spell check
I'm trying to get Norwegian spell checking working in Emacs, and I'm having trouble with the Norwegian dictionary.
System
Ubuntu 17.04
GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24....
1
vote
1
answer
243
views
How can I move all my file-local LocalWords to .dir-locals.el?
This is a follow-up question to Can I instruct ispell to insert LocalWords in a different file?.
So now that I've got a way to use a separate file for my local dictionary, is there any way to move ...
1
vote
2
answers
2k
views
How to supply ispell program with dictionaries?
I have the following environment on my machine: Windows 7, emacs and aspell built with mingw. I am trying to use aspell for spell-checking in buffer.
After i change language to russian (i have ...