Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.