Questions tagged [flyspell]

Flyspell enables on-the-fly spell checking in Emacs by the means of a minor mode (called Flyspell).

Filter by
Sorted by
Tagged with
20
votes
4answers
4k views

How to use Flyspell to efficiently correct previous word?

From the moment when I started using Flyspell, it always was painful to use. I rarely check entire buffer for misspelled words, usually I type and once I see underlined word I want to correct it ...
20
votes
1answer
2k views

How does one use flyspell in org buffers without flyspell triggering on tangled code blocks?

Imagine an org buffer in Emacs like: * Title Some text describing the title and the codew (sic) and whatnot. #+BEGIN_SRC emacs_lisp (setq backup-by-copying t) #+END_SRC I want flyspell to check ...
15
votes
1answer
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?
14
votes
2answers
603 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?
10
votes
5answers
5k views

aspell with emacs 26.1 on ms windows

After updating emacs to version 26.1 on a windows machine, I get the following error message from flyspell: Error enabling Flyspell mode: (c:/Program Files (x86)/Aspell/bin/aspell.exe release 0.60 or ...
10
votes
3answers
1k views

Is it possible to auto-correct spelling “on space”?

I was about to post the question but then I saw it on Stack Overflow while searching for auto-correct possibilities. The linked question has no answers, so I thought it'd have more luck on this site. ...
6
votes
2answers
396 views

How to make Flyspell ignore code blocks in Markdown?

Can I filter what Flyspell may check in the buffer? I don't want it to spell-check code in Markdown mode. Maybe I can use the font-face at point for that? Something like this: (let ((get-char-...
6
votes
0answers
87 views

Flyspell breaks on special characters

Problematic Behavior Special characters appear to split words in flyspell even if the words are in my dictionary: How can I fix this? Flyspell Configuration Details I am using the ispell backend ...
6
votes
0answers
55 views

Can I have a different dictionary for flyspell in different headings?

I have an org-mode file where I use different languages. I was hoping to be able to have flyspell checking them. Something like: * Title 1 :PROPERTIES: :Language: Italian :END: This is italian text ...
5
votes
4answers
1k views

How to automatically load flyspell-mode when Markdown (.md, .mdwn) file is open?

When editing Markdown files (.md, .mdwn, etc.) and Mediawiki files (.mw), I almost always need to have flyspell-mode loaded. How to have that automatically happen via configuration?
5
votes
2answers
726 views

Can you turn on flyspell for comments but NOT strings?

I currently use the following to enable flyspell in prog-mode: (add-hook 'prog-mode-hook 'flyspell-prog-mode) This checks spelling automatically in comments and strings. However, I would like to ...
5
votes
1answer
230 views

Inadvertent paste when correcting spelling mistakes using flyspell

When I click with the middle mouse button that usually inserts the primary selection at the point where I clicked. However, the same button opens flyspell's context menu when I click on a misspelled ...
5
votes
2answers
563 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-...
4
votes
2answers
2k views

How to speed up flyspell-mode?

When flyspell-mode is active, typing is somewhat – although barely noticeable – more sluggish than without, also marking of words. Is it possible to somehow speed up flyspell-mode, maybe make it not ...
4
votes
1answer
137 views

How to set the local dictionary in a *Org Note* buffer?

I am using different flyspell/ispell dictionaries for different buffers/files setting the file local variable ispell-local-dictionary, respectively. But if I want to log e.g. a TODO state change a *...
4
votes
1answer
614 views

Run flyspell-buffer automatically after emacs loads a (tex)-file

I want to load flyspell-mode and execute flyspell-buffer automatically after emacs loaded a tex file. I tried the following which loads flyspell-mode but doesn't seem to execute flyspell-buffer. What ...
4
votes
1answer
739 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 ...
4
votes
0answers
1k 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-...
3
votes
2answers
185 views

Skip flyspell checking of ~code~ and =verbatim= regions in Org mode

First some disambiguation: This Endless Parentheses page demonstrates how to use ispell-skip-region-alist to skip =code= and =verbatim= blocks with ispell… (defun endless/org-ispell () "...
3
votes
1answer
685 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 ...
3
votes
1answer
161 views

Flyspell check entire document upon opening

I have enabled Flyspell in .emacs: (add-hook 'org-mode-hook 'turn-on-flyspell) When I open a document and start typing, typos will be underlined. However, when I close and reopen the document, the ...
3
votes
2answers
2k views

Ispell can't find my dictionary

I'm running Emacs on MacOS and I installed aspell and its English dictionaries through nix. When I open a file, flyspell throws the following error. Error enabling Flyspell mode: (Error: No word ...
3
votes
1answer
75 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
1answer
2k 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
4answers
788 views

Improving spell correction

I'm currently using Flyspell to auto-correct the previous word as I type, which is convenient. However, the spell-checker I use, Hunspell, makes some strange decisions. For example, the misspelled ...
2
votes
2answers
239 views

Make flyspell avoid checking #includes in C++

Flyspell does a great job ignoring all the source code and only check comments, with one flaw: it still does check the text after #includes. So the iostream here does get highlighted: #include <...
2
votes
2answers
455 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
2answers
366 views

flyspell-goto-next-error without running flyspell-buffer first?

I would like to do a sort of flyspell-goto-next-error but without first having to run flyspell-buffer or flyspell-region. How could this be accomplished? In other words: keep "flyspell-buffering" ...
2
votes
2answers
91 views

Show current ispell dictionary in modeline

FlyCheck had dynamic modeline that shows real-time errors information: FlyC:0/21 How to have the similar ability for flyspell, to show the current dictionary used in the current buffer, the info ...
2
votes
1answer
208 views

flyspell does not start form the first try

I used flyspell-mode with aspell backend before, but now I want to make the transition to the hunspell so that I could use multiple dictionaries. To do so, I added the following lines to the init.el: ...
2
votes
1answer
183 views

How to clear underlines after disabling flyspell?

There are already questions on disabling flyspell (see: https://stackoverflow.com/questions/3423638) However I would like to toggle flyspell at runtime. An annoyance I've found is the red-underline ...
2
votes
1answer
183 views

Is it possible to enable flyspell in scratch buffers?

I often use scratch buffers, when I want to take a closer look at some code. However I can't enable flyspell in scratch buffers. Is there a way to also use it when not editing a file ? EDIT: I can't ...
2
votes
1answer
551 views

How do I disable the emacs flyspell middle mouse correction?

I already use middle mouse to paste/yank. However flyspell seems to hijack this, making it impossible to paste in the vicinity of a correctable word. With the help of this question I have discovered ...
2
votes
1answer
101 views

mmm-mode and flyspell

I use mmm-mode in order to add python code in LaTeX. So i have something like this in my emacs config: (use-package mmm-mode :ensure t :config (mmm-add-group 'latex-python '((latex-...
2
votes
0answers
112 views

Writing on Emacs: Spell + Grammar + More checking? [duplicate]

There is something I never found how to manage correctly on Emacs: advance spell checking. I know that a lot of modes allow spell check (flyspell, hunspell...) but what I really wonder is: is it ...
2
votes
1answer
160 views

flyspell's highlight cleared after a “save word” action

After running flyspell-buffer, all misspelled words are highlighted. However, after saving a word, all of the highlighting is gone. How can I avoid that? My flyspell-persistent-highlight is set t.
2
votes
0answers
99 views

How to cycle between language specific abbrev tables in a buffer?

I have (human-)language-specific abbrev-tables named like lang-francais-mode-abbrev-table, lang-castellano8-mode-abbrev-table backed by my ~/.emacs.d/abbrev_defs file. The language names are the ...
2
votes
0answers
327 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
3answers
4k views

Hunspell error in emacs

My .emacs file contains the following code to make hunspell work, however I get the following error message when starting flyspell-mode: Starting new Ispell process hunspell with deutsch-hunspell ...
1
vote
1answer
675 views

Could not load package flyspell with use-package

I have configured flyspell mode with use-package like this: (use-package flyspell-mode :init (progn (flyspell-mode 1)) :config (progn (setq ispell-program-name "aspell") (setq ...
1
vote
1answer
673 views

How to hook to functions?

I want to center my screen after calling flyspell-goto-next-error. If you have a "direct" solution please let me know, but I encounter the following issue more often: I'm looking to hook to the ...
1
vote
1answer
169 views

git-commit-mode with flyspell very slow

I use emacsclient as my git commit editor. This is what I have in my init file: (require 'git-commit) (add-hook 'git-commit-mode-hook 'turn-on-flyspell) I just made a huge commit (update of a third-...
1
vote
1answer
20 views

How do I get flyspell to ignore pandoc citations in markdown

Flyspell regularly shows pandoc citations as a spelling error in markdown documents. For example @chu2017 will come up as a spelling error for 'chu'. How can I get Flyspell ignore the citations and ...
1
vote
1answer
182 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-...
1
vote
1answer
1k views

How to permanently change the default spelling dictionary?

In Aquamacs, the Emacs for macs, the dictionary can be changed in the Menu by going to Edit -> Spelling -> Change Dictionary... In my case, I enter en_GB. How do I avoid doing this for every file ...
1
vote
1answer
331 views

How to improve flyspell performance loading files?

On loading large files (~2000+ lines for example), flyspell takes a few seconds to Run. Is there a way to have flyspell delay applying to the entire buffer on load? Only run on visible text for ...
1
vote
2answers
4k views

Hunspell flyspell and Emacs on windows

I know this has been asked many times, but the answers don't seem to do it for me. How do you get Flyspell to work with hunspell? After installing the hunspell executables via mingw-64-hunspell ...
1
vote
1answer
173 views

Add last mistake to dictionary with flyspell and ispell

flyspell-auto-correct-previous-word is a great way to quickly correct mistakes in a buffer. I get a lot of false positives though, and I would like to quickly add them to my dictionary in an analogous ...
1
vote
0answers
31 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 ...
1
vote
0answers
43 views

How to apply change from flyspell correction popup in Markdown mode?

This seems like such a dumb question. I'm using spacemacs and have in configuration-layers (spell-checking :variables enable-flyspell-auto-completion t) So I'm in markdown and I ...