As of May 31, 2023, we have updated our Code of Conduct.
21 votes
Accepted

Rendering URLs as clickable links

Emacs offers goto-address-mode for making a number of things, including HTTP links, clickable.
wasamasa's user avatar
  • 21.7k
16 votes

Create a file link in org-mode that accepts spaces in the text

If you put the links in a file using org-mode (e.g. ending in .org), you can create links like this by: [[file:d:/path/to/filename with spaces]] I'm assuming you are on Windows, and this works for ...
Meaningful Username's user avatar
14 votes
Accepted

How to reference named table or code block in Org-mode

I found the solution, Org-mode radio target can be used here. here is the doc: http://orgmode.org/org.html#Internal-links Like this: Here is a named table. #+NAME: my target | x | y | | 1 | 2 | I ...
stardiviner's user avatar
  • 1,848
14 votes
Accepted

In Org Mode, how do I link to internal documentation?

When in a certain buffer one can use M-x org-store-link to find the correct syntax for linking to that file. For linking to internal documentation you can use the following links: info:elisp#...
Daniel's user avatar
  • 3,533
13 votes
Accepted

How to reference source blocks in org text

If you use org-ref (https://github.com/jkitchin/org-ref), you can do this: #+caption: test label:some-source-code #+BEGIN_SRC python for i in 1:10: print i #+END_SRC See Listing ref:some-...
John Kitchin's user avatar
  • 11.5k
9 votes
Accepted

Org-mode external links not working when exported to HTML

The string behind :: is actually a search. In this context one understands the relevant comment in the source code of the function org-html-link in the library file ox-html.el (org 8.2.5). It says: ...
Tobias's user avatar
  • 32.1k
8 votes

Rendering URLs as clickable links

My orglink package does that. It "implements support for some Org Mode link types in other major modes. Links can be opened and edited like in Org Mode". These are some examples of links that it ...
tarsius's user avatar
  • 25.1k
7 votes
Accepted

Remember visited links in manual

The history of visited nodes is stored in the variable Info-history-list. You will need to persist this variable across sessions. One way to do so it to use desktop-mode. Desktop mode automatically ...
Iqbal Ansari's user avatar
  • 7,438
7 votes
Accepted

How can Markdown mode follow links?

markdown-follow-thing-at-point (C-c C-o) and also markdown-follow-link-at-point will follow links. If you have a link like [filelink](/path/to/file.md) then calling one of the above functions while ...
mclear's user avatar
  • 1,505
7 votes
Accepted

org mode open link in browser directly

[This answer is meant as a tutorial introduction to how one would debug problems like the OP's, so it is more detailed than the "answer" which is just the setting of browse-url-browser-...
NickD's user avatar
  • 25.9k
6 votes

How to reference source blocks in org text

Try this #+NAME: some-source-code #+BEGIN_SRC python for i in 1:10: print i #+END_SRC Method 1 [[file:::some-source-code]] This should link back to some-source-code. Caveat: [[file:::...
Melioratus's user avatar
  • 4,474
6 votes
Accepted

How can I get all file links in one org-mode file?

Assuming the current buffer is an org-mode buffer, the following code collects paths of file links in the current buffer. (org-element-map (org-element-parse-buffer) 'link (lambda (link) (when (...
sho's user avatar
  • 146
5 votes

Remember visited links in manual

@Iqbal gives a great answer to your question. You might also consider using bookmarks to record Info locations of interest, including a bookmark for where you left off (which you update at the next ...
Drew's user avatar
  • 74.7k
5 votes
Accepted

Org external link - can I indicate which browser/tab to be used

You can set up your own protocols in org-link-parameters with org-link-set-parameters. If you run (org-link-set-parameters "chrome" :follow (lambda (path) (browse-url-chrome (concat "http:" path)))) ...
Tobias's user avatar
  • 32.1k
4 votes

`mouse-1` (button 1) follows links, like `mouse-2` does - how to modify the behavior?

You want to look at C-h v mouse-1-click-follows-link RET, I think.
Stefan's user avatar
  • 26k
4 votes

Radio targets in external org mode file, for glossary application

I plan on using one dictionary for everything, I'd prefer not to include the entire file for each document. I have this in my .emacs: (setq org-link-abbrev-alist '(("google" . "http://www.google....
Jerry Riley's user avatar
4 votes
Accepted

Adding links to locally stored images with a description to an org file

I don't understand what you are hoping to get or expecting. I think if you have a description, you will get a hyperlink to the file, not the image itself. Of these two links, the first turns into the ...
John Kitchin's user avatar
  • 11.5k
4 votes
Accepted

Add clickable text in read only buffer?

The reason for the error is that you did not use the correct format to add a text property. quote from manual: Function: add-text-properties start end props &optional object The argument props ...
timor's user avatar
  • 410
4 votes
Accepted

how do I capture point in arbitrary file as orgmode external file link?

Use org-store-link to store the position of your current emacs buffer file and in your org file org-insert-link to insert the stored link. This prompts you with a selection of links and a query for ...
theldoria's user avatar
  • 1,825
4 votes

Rendering URLs as clickable links

It's not 100% clear if you want only the ability to click on URLs, or if you want to change their faces in the buffer. For the former, you can use either browse-url as you suggest: https://www....
Dan's user avatar
  • 32.3k
4 votes
Accepted

Link string to url and make it clickable

The standard way to define clickable text is explained in the manual. put an appropriate face, e.g. link and the text property keymap on the link text. bind the follow-link event in that keymap to a ...
Tobias's user avatar
  • 32.1k
3 votes
Accepted

shorten or control the length of url link in org mode without bitly packages

So this may not be exactly what you want but it turns the section that is underneath your point into a link that should be shorter. (defun compress-org-link (arg) (interactive "P") (let ((url (...
Jules's user avatar
  • 1,265
3 votes
Accepted

Export without links

If there were a general org export option to do so I would expect to see it documented here: http://orgmode.org/manual/Export-settings.html#Export-settings. Looking directly at the source I don't see ...
ebpa's user avatar
  • 7,239
3 votes

Radio targets in external org mode file, for glossary application

No, What you want probably isn't possible without some extreme customization. However, Org once again surprises me with how well the default behavior works, included files with links are treated the ...
user2699's user avatar
  • 2,161
3 votes
Accepted

Insert entries and link to entries from org-contacts

One way to accomplish what you want is to wrap org-contacts with a special org-contacts-mode as demonstrated in the following. This new major mode defines the keys l and c as you specified it in its ...
Tobias's user avatar
  • 32.1k
3 votes

How can I change what happens when I click on a pdf-tools link?

I'll answer your actual problem of modifying the action for following links with pdf-tools. The customizable option pdf-links-browse-uri-function holds a function that receives a string with the uri ...
Tobias's user avatar
  • 32.1k
2 votes

How to change faces of org-mode links depending on the link type?

Starting from Org-Mode version 9.x. Thanks to John Kitchin's answer in Fontify broken links in org-mode, I applied different faces for id-links and file-links with a code similar to this: (defface ...
Delapouite's user avatar
2 votes

Mouse click on links does not work

I hope this is not to send a bad signal. I will answer my own question once more. The comments are very helpful in guiding me, however I have to use both my 'knowledge' of my setup, my laziness, and ...
biocyberman's user avatar
2 votes

how to get org-mode to recognize markdown-style links?

Well this has bugged me a lot too (I happen to find the Markdown syntax much more intuitive), and today I looked into the required changes to org.el and there's quite some work. There should be an ...
DomQ's user avatar
  • 245
2 votes

Radio targets in external org mode file, for glossary application

You may consider putting your glossary in another format. For example, I use list definitions to accomplish what you are after, for example: * List of Acronyms - <<<ABI>>> :: ...
theldoria's user avatar
  • 1,825

Only top scored, non community-wiki answers of a minimum length are eligible