Open dired and select the file associated with the previous buffer?
问题 Let's say I am editing blah.txt with Emacs and I decide to open dired to rename the file blah.txt. When I press C-x d RET (or C-x C-f RET ), a dired buffer will show up to display the content of the directory containing blah.txt , but the cursor will not be on blah.txt . So I need to search my file first ( C-s blah.txt ) to place my cursor on it and then I can rename it ( R ). How do I automate or remove the step C-s blah.txt ? 回答1: dired-jump is exactly what you want. (autoload 'dired-jump