Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For example, if my A.txt contains the following line:

summary is at: /summary/is/at/summary.txt

how can I open summary.txt without having to copy-paste the path, or write the whole path after C-x C-f?

share|improve this question
up vote 1 down vote accepted

You can use the find-file-at-point function:

  1. open A.txt with Emacs;

  2. move the cursor somewhere in the middle of /summary/is/at/summary.txt

  3. M-x find-file-at-point

You might want to set up a shortcut for it, add to your ~/.emacs, for example:

(global-set-key (kbd "M-p") 'find-file-at-point)
share|improve this answer
Thanks! that was perfect! – Kinshuk Sep 20 '12 at 13:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.