Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the language in Emacs when using ispell?

Tags:

emacs

ispell

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)?

like image 810
Bruno Ranschaert Avatar asked Oct 20 '08 13:10

Bruno Ranschaert


People also ask

How do I use aspell with Emacs?

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.

How do you use Flyspell?

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.

How do you install aspell Windows?

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\”.


2 Answers

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.

like image 125
stephanea Avatar answered Oct 10 '22 08:10

stephanea


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.

like image 20
Pierre Avatar answered Oct 10 '22 07:10

Pierre