Chinaunix首页 | 论坛 | 博客
  • 博客访问: 280376
  • 博文数量: 55
  • 博客积分: 2535
  • 博客等级: 少校
  • 技术积分: 585
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-25 16:41
个人简介

Je pense donc je suis.

文章分类

全部博文(55)

文章存档

2014年(11)

2011年(3)

2010年(40)

2009年(1)

我的朋友

分类: LINUX

2010-04-16 16:13:06

首先到

下载flyspell.el,放到家目录(我为了方便,直接这样做的),或者直接从这里下载也可以的。
文件:flyspell-1.7o.el.tar.gz
大小:19KB
下载:下载
然后在~/.emacs文件里面添加如下几句:
;; set fly-on-spell
(autoload 'flyspell-mode "flyspell" "On-the-fly spelling checker." t)
(autoload 'flyspell-delay-command "flyspell" "Delay on command." t)
(autoload 'tex-mode-flyspell-verify "flyspell" "" t)
;(global-flyspell-mode)
(add-hook 'LaTeX-mode-hook 'flyspell-mode)

然后就可以使用了。

以下是上述网站提供的介绍:

Presentation:

Flyspell enables on-the-fly spell checking in Emacs by the means of a minor mode. It is called Flyspell. This facility is hardly intrusive. It requires no help. Flyspell highlights incorrect words as soon as they are completed or as soon as the cursor hits a new word.

Flyspell is language independent because you are free to select your own dictionary.

Flyspell is compatible with TeX editing. That is, Flyspell tries, as much as possible, to avoid highlighting TeX command. In order to automate the starting of Flyspell when editing LaTeX source files, one may add the following expression in his .emacs file:

(add-hook 'LaTeX-mode-hook 'flyspell-mode)

Flyspell proposes corrections for miss-spelled words by the means of pop-up menus. Clicking Mouse-2 (这里是指鼠标中键)on a highlighted word will raise a menu that proposes corrections. Alternatively you will be able to store the word in the global dictionary, to add it to the current document dictionary or to ignore the miss-spelling for the current session.

Flyspell also proposes automatic corrections. With M-\t, Flyspell replaces current miss-spelled word with a possible correction. If several corrections are made possible, they are sorted and M-\t proposes a new correction each time hit. Corrections may be sorted by alphabetical ordering (the default) or by likeness to the current word ordering. To enable the likeness criteria, uses:

(setq flyspell-sort-corrections nil)

Flyspell considers that a word repeated twice is an error (for instance, the second word word is highlighted). This feature can be disable with:

(setq flyspell-doublon-as-error-flag nil)

阅读(2143) | 评论(0) | 转发(0) |
0

上一篇:中文段首缩进问题

下一篇:如何打勾和叉

给主人留下些什么吧!~~