書式 ispell file_name ! file_name はチェック対象のファイル名これを実行すると、画面の一番下に
[SP]とでます。ここで、S, R, A, I, X, Q, ? の意味は、R)epl A)ccept I)nsert L)ookup U)ncap Q)uit e(X)it or ? for help
S : 次へ R : 置換 候補が表示されていれば選択したい番号、そうでなければ 正しいスペルを入力しなおします。 A : 次へ(このチェックの間、同様な単語についてs全て有効) I : 自分の辞書に登録(~/.ispell_english に登録される) X : 現在までの修正を保存して終了 Q : 修正を無効にして終了 ? : ヘルプ(説明)です。大文字、小文字の区別はないので、小文字で、r, a, i, x, q をタイプすれば OK です。
以下(cut here と cut here の間)の行を、.emacs の最後に付け 加えて下さい。
* mule(Emcas) のマクロファイル(Emacs Lisp の外部ファイル)を 付け加える
----- cut here --------- ;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ispell ;;;;;;;;;;;;;;;;;;;;;;;;;;; (autoload 'ispell-word "ispell" "Check the spelling of word in buffer." t) (global-set-key "\e$" 'ispell-word) (autoload 'ispell-region "ispell" "Check the spelling of region." t) (autoload 'ispell-buffer "ispell" "Check the spelling of buffer." t) (autoload 'ispell-complete-word "ispell" "Look up current word in dictionary and try to complete it." t) (autoload 'ispell-change-dictionary "ispell" "Change ispell dictionary." t) (autoload 'ispell-message "ispell" "Check spelling of mail message or news post.") (add-hook 'news-inews-hook 'ispell-message) (add-hook 'mail-send-hook 'ispell-message) (add-hook 'mh-before-send-letter-hook 'ispell-message) --- cut here ---------mule を起動し、モードラインで、
M-x ispell-buffer (M-x は、ESC + x)をタイプします。
word.pl を起動して、英和辞典(EJDICT)を検索します。
> alias yaku '/usr/local/lib/perl5/word.pl \!* | cat | nkf -e'とします。この行を ~/.cshrc の alias 指定の部分に上の行を書いて おけば、毎回タイプする必要はありません。
上記のエイリアス登録を行った上で、yaku と打てば、'と ' で囲まれたコマンドを発行します。
[書式] yaku word [例] 22 luna > yaku techno technocracy 〈U〉テクノクラシー,技術家主義(専門技術者に産業の支配・統制を任せようという理論);〈C〉技術家集団 (C)技術家主義の国家 technocrat 技術家政治[論]の主唱者 技術系の高級行政官 technological 科学技術の(に関する) technologist 科学技術者,工業技術者 technology 科学技術,工業技術 科学(工業)技術的な方法(過程) 文明の環境利用(開発)