Using Emacs to recursively find and replace in text files not already open

M-x find-name-dired: you will be prompted for a root directory and a filename pattern. Press t to “toggle mark” for all files found. Press Q for “Query-Replace in Files…”: you will be prompted for query/substitution regexps. Proceed as with query-replace-regexp: SPACE to replace and move to next match, n to skip a match, etc. Press … Read more

How do I rename an open file in Emacs?

Yes, with dired mode, you can: C-x d to open dired RET to select directory of current file C-x C-j (dired-jump to the name of the current file, in Dired) R to rename the file (or dired-do-rename). q to go back to the (renamed) file buffer The rename is equivalent to a shell mv, but … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)