If you use org mode, you can set it to not open files in folded view. Put the following in your “.emacs”:
(setq org-startup-folded nil )
I find this useful because when i do interactive find and replace on multiple files, if the org mode files open in folded view, you won't see what's being replaced.
If you prefer to open org mode files in folded view, one solution is to temporarily set the variable org-startup-folded to nil before you do find＆Replace in a dir. Just call “set-variable”.