Emacs で icicles を使ってみる
Emacs の補完を超強化するという icicles をどこかで見かけて、何となく使ってみようと思いました。
EmacsWiki の Icicles - Libraries を見ると、Download Icicles Libraries in Bulk のところに icicles-install.el というダウンロード用のライブラリがあるようなので、それを使います。
icicles-install.el の Download からファイルを適当な場所にダウンロードして、Emacs で開きます。僕は CarbonEmacs を使っていて、emacs は /Applications/Emacs.app/Contents/MacOS/Emacs のエイリアスとしていますので(さらに e にしてるけど)、以下そんな感じで。
-
[ihara@barcelona.local:~/tmp] $ wget http://www.emacswiki.org/cgi-bin/wiki/download/icicles-install.el
-
[ihara@barcelona.local:~/tmp] $ emacs icicles-install.el
icicles-install.el を見ると、頭の方に使い方の説明が書いてあるので、だいたいその通りやっていきます。
scratch バッファに移動して、
-
(load-library "~/tmp/icicles-install")
と記述して C-x C-e で評価。
デフォルトだと ~/icicles にファイルがダウンロードされるので変更したい場合は customize-variable で
icicle-download-dir を変更してねとのことなので、M-x customize-variable して ~/.elisp/icicles に設定。
その後 M-x icicle-download-wizard を実行すると Download the Icicle files? (y or n) と聞かれるので y。多少待ってると必要なファイルを全部上のディレクトリにダウンロードしてくれます。終わると Byte Compile the file? (y or n) とまた聞かれるので y。それも終わると Show the Icicle files? (y or n) とまた聞かれるので n。これでインストールは終了。
あとは ~/.emacs に
-
(load-library "icicles")
-
(icy-mode)
を記述してとりあえず設定完了。
てか、この辺で Carbon Emacs って icicles ハナからパッケージに含まれていることに気づきましたが続行。
やれることがめちゃめちゃあるので、まずは
http://www.emacswiki.org/cgi-bin/emacs-ja/Icicles_-_Nutshell_View
この辺から勉強してみます。
例えば、C-x C-f S-Tab でディレクトリとファイルの一覧が表示されます。
ma と入力すると名前に ma が含まれる一覧に絞り込まれます。
さらに S-space でその一覧を正規表現で絞り込めるます。
ここで el と入力するとマッチするものが .emacs.el しかないのでそれが開かれる、みたいな。
なんかモリモリですね。
で、この icicles、Icicles - Libraries の中程にあるように、ウィンドウシステム上で動かす想定なので、-nw で起動したら
-
You probably do NOT want to use Icicles without a windowing system (manager).
-
-
Consider using `emacsclient' (or `gnuclient'). Icicles makes use of many
-
keys that are unavailable when running Emacs in console mode. If you do
-
use Icicles in this mode, you will want to rebind those keys - see file
-
`icicles-mode.el'.
つうメッセージが表示されます。自宅の Carbon Emacs でも会社の non X な Emacs でも同じように使いたいのでこの時点でかなりやる気は失われ、さらに iTerm の上で -nw で起動した Emacs で S-Tab するとなぜか C-y って認識されちゃい(ちなみに会社の putty だと ESC [ z、この辺?http://vt100.net/annarbor/aaa-ug/section11.html)、探してみてもそれらしい情報も見つけられずダウン。涙。
About this entry
You’re currently reading “ Emacs で icicles を使ってみる ,” an entry on forever 5 years old blog
- Published:
- 12pm on 2007/10/14
- Category:
- Emacs
- Related Posts:




No comments
Jump to comment form | comments rss [?] | trackback uri [?]