emacsでperlのコードを呼んでいると、このモジュールの中身どうなってるんだっけって思って調べることがよくあります。そんな時、perldoc -mをemacs上で呼ぶと便利です。 emacs上でperldoc -mを使う方法はid:antipopさんがブログに書いていて、http://blog.kentarok.org/entry/20080702/1214926316を参照すれば使うことが出来ます。今回は更にそれを改造して、もう少し使いやすくしてみました。 perldoc-m 改造したperldoc-mは以下のとおりです。id:motemenさんの作ったpm-packages.plが必要になります。 ;; モジュールソースバッファの場合はその場で、 ;; その他のバッファの場合は別ウィンドウに開く。 (defun perldoc-m () (interactive) (let ((m