anything-for-filesでlocateが動かない問題について
anything インストール済み Emacs を起動してすぐに anything-for-files を起動しても,locate が動かない.anything-for-files には anything-c-source-locate が含まれているはずなのに…….
原因は,anything-c-locate-command が初期状態では nil になっているからのようだ.そのため,これに適切な代入を行う anything-locate を実行後は anything-for-files で locate が有効になる.
anything-locate 実行時に anything-c-locate-command には以下のような代入が行われているようだ.
(setq anything-c-locate-command (case system-type ('gnu/linux "locate -i -r %s") ('berkeley-unix "locate -i %s") ('windows-nt "es -i -r %s") (t "locate %s")))
.emacs にこれを書けば解決する.マシンが決まっているのであれば以下で十分(私のUbuntu環境の例).
(setq anything-c-locate-command "locate -i -r %s")