24 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
  • 22.2k
15 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,653
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.9k
10 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
  • 29.8k
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
  • 33.2k
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.7k
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,555
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,644
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
  • 33.2k
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
  • 33k
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,835
4 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,479
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.9k
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
  • 33.2k
4 votes
Accepted

How to link to info node from emacs-lisp comment

In comments I just write this: ;; See (info "(elisp) Invisible Text") And then I just evaluate that with C-xC-e if I want to view that node.
phils's user avatar
  • 51.2k
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
  • 33.2k
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,225
3 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
  • 277
3 votes

How to link to info node from emacs-lisp comment

Need a bit of dirty work: modify the definition of one function in bug-reference.el. (I'm just making a demonstration here. You should modify it according to your needs.) (BTW, this is one of the ...
shynur's user avatar
  • 5,288
2 votes
Accepted

How can I manually set links in org mode?

I believe this is essentially what you want: ;; Set directory of files to search for *.org files (setq autolinks-mode-dir "/Users/jkitchin/vc/journal/2018/08/07/") ;; Get all .org files in this ...
John Kitchin's user avatar
  • 11.9k
2 votes

Set the default link description

The function org-wiki-insert inserts a wiki: link of the form [[wiki:MyHeading][MyHeading]]. But, it's more convenient to use the built-in org-insert-link. For that we need two things: completions ...
erikstokes's user avatar
  • 12.9k
2 votes
Accepted

org - hyperlink to external image: Function to download it and adjust link to local location?

You can easily build this functionality by getting at abo-abo's org-download package. Look at the command org-download-image which takes an image address as its argument and downloads it to an ...
dfeich's user avatar
  • 1,904
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,835
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
Accepted

How to (correctly) hex encode a URL so that it becomes a valid address I can paste into my web browser?

The function browse-url-url-encode-chars translates https://en.wikipedia.org/wiki/Blue_(disambiguation) into https://en.wikipedia.org/wiki/Blue_%28disambiguation%29 if used in the following way: (...
Tobias's user avatar
  • 33.2k
2 votes
Accepted

How to make org-mode style links?

If you want a straight font-lock approach, I think this is what you want. (defun next-notes (limit) (when (re-search-forward "[Nn]otes" limit t) (let ((map (make-sparse-keymap))) ...
John Kitchin's user avatar
  • 11.9k
2 votes
Accepted

How to delete a link in org mode in spacemacs

Just C-c C-l on the link and C-a C-k in the minibuffer to delete the link part will do it.. This used to produce an error before Org mode version 9.4, but it no longer does (see commit https://code....
nichijou's user avatar
  • 1,188
2 votes

Hyperlinks to webpages in a named buffer

Package hyperbole automatically turns plain-text URLs into hyperlinks everywhere in Emacs.
Phil Hudson's user avatar
  • 1,741
1 vote

mu4e (gnus) MS safelinks decoder

I've ported the Python code you've linked: (require 'url-parse) (defun my-decode-safelink (url) (if (string-match-p (regexp-quote "safelinks.protection.outlook.com") url) (let* ((query (url-...
wasamasa's user avatar
  • 22.2k

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