🗂
Emacs で複数ファイルを置換
Qiitaから移設
元ネタはこちら。
Emacsで拡張を使わず複数ファイルの複数行に渡る置換を行う
これがすごく便利。Java の package の書き換えとかで救われた。。。
しょっちゅう忘れるので、コマンドだけ
M-x find-dired
Run find in directory: /path/to/dir/
Run find (with args): -type f
ファイル選択(*s で全選択)
Q
Query replace regexp in marked files: 置換前の文字
Query replace regexp in marked files <**> with : 置換後の文字
Discussion