2007-03-02から1日間の記事一覧

Emacsで語数を数える

Emacsには、行数を数えるcount-lines-regionはあるが、単語数を数える機能は用意されていない。調べると、"An Introduction to Programming in Emacs Lisp"でサンプルとして、count-words-regionという関数が見つかった。http://www.gnu.org/software/emacs/…