How to make a link to an external line in Emacs org-mode

I have 2 files:

  • php file with code
  • org file with documents

How to create link to string in php file from org file? Therefore, clicking on it will move the cursor to the corresponding line in the php file.

+7
source share
1 answer

Use this notation in org mode to create a link:

[[/path/to/file.php::line][string-to-display]] 

If you want the file name to be displayed, use only

 [[/path/to/file.php::line]] 

For more information, see Hyperlinks on the Org Mode Details page for more information and other ways to specify links.

+9
source

All Articles