Skip to content

Commit 1eabb6c

Browse files
committed
Merge pull request #92 from emacs-jp/ac-ispell
add ac-ispell article
2 parents 2bfe996 + 6b74d75 commit 1eabb6c

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed
26.8 KB
Loading

packages/auto-complete/ac-ispell.md

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
layout: page
3+
title: "ac-ispell.el"
4+
description: "ispellの auto-complete source"
5+
package: true
6+
category: "auto-complete"
7+
tags: ["auto-complete"]
8+
---
9+
{% include JB/setup %}
10+
11+
## 概要
12+
13+
[ac-ispell.el](https://github.com/syohex/emacs-ac-ispell)は ispellの `auto-complete` sourceです.
14+
各種単語辞書の中から補完を行うことができます. キャメルケースやすべて大文字の単語の補完も行うことが
15+
できます.
16+
17+
18+
## スクリーンショット
19+
20+
![screenshot1](/images/auto-complete/ac-ispell/ac-ispell.png)
21+
22+
## 必要要件
23+
24+
- Emacs 23 or higher
25+
- auto-complete
26+
27+
28+
## インストール方法
29+
30+
`MELPA`からインストールすることができます.
31+
32+
```
33+
M-x package-install ac-ispell
34+
```
35+
36+
## 設定
37+
38+
#### `ac-ispell-requires`(Default `3`)
39+
40+
補完を開始する最小文字数.
41+
42+
43+
#### `ac-ispell-setup`
44+
45+
`auto-complete` sourceのセットアップを行う. `ac-ispell-setup`を呼び出す前に
46+
設定をする必要がある.
47+
48+
49+
#### `ac-ispell-ac-setup`
50+
51+
ispellの auto-complete sourceを `ac-sources`に追加する.
52+
また `auto-complete-mode`を有効にする.
53+
54+
55+
## 設定例
56+
57+
```lisp
58+
;; 4文字以上の場合, 補完するようにする
59+
(custom-set-variables
60+
'(ac-ispell-requires 4))
61+
62+
(eval-after-load "auto-complete"
63+
'(progn
64+
(ac-ispell-setup)))
65+
66+
(add-hook 'git-commit-mode-hook 'ac-ispell-ac-setup)
67+
(add-hook 'mail-mode-hook 'ac-ispell-ac-setup)
68+
```

0 commit comments

Comments
 (0)