I would like to use the ispell-buffer command in Emacs. It uses the English language by default. Is there an easy way to switch to another dictionary (for example, another language)?
The easiest way to use Aspell with Emacs or Xemacs is to add this line: (setq-default ispell-program-name "aspell") to the end of your . emacs file.
Flyspell mode is a minor mode that performs automatic spell-checking of the text you type as you type it. When it finds a word that it does not recognize, it highlights that word. Type M-x flyspell-mode to toggle Flyspell mode in the current buffer.
First you need to download and install both the aspell executable and at least one dictionary from http://aspell.net/win32/. These will be two separate downloads, be sure to get both. Under the 64-bit version of Windows 7 the default install directory for both of them is “C:\Program Files (x86)\Aspell\dict\”.
The following command proposes a list of installed dictionaries to use:
M-x ispell-change-dictionary
Usually, M-x isp-c-d
expands to the above also.
From the file ispell.el you may specify some options for the ispell
commands. This happens by adding a section to the end of your file like this:
;; Local Variables: ;; ispell-check-comments: exclusive ;; ispell-local-dictionary: "american" ;; End:
Note the double semicolon marks the start of comments in the current mode. It should probably be changed to reflect the way your file (programming language) introduces comments, like //
for Java.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With