日記はScrapboxに移動しました。

Emacsからackの検索結果を使う

,

よくわかんないけど、こんなんでいんじゃねもうもう。quickfixって何。vimとかわかりません><

(defun ack ()
(interactive)
(let ((grep-find-command "ack --nocolor --nogroup "))
(call-interactively 'grep-find)))

ちなみにackは、CPANのApp::Ackから入れるとackなのだけど、debianのパッケージだとack-grepなので注意を要する。あと、最近anything.el(素敵!!!)を使いはじめたので、そこに出すようにしてみようかと思ったりもしたけど、それはそれで微妙な気もした。どうだろ。

2 comments

  1. それでいいんだと思いますw
    moccur-editとかもありますしね。

Leave a Reply

Your email address will not be published. Required fields are marked *