Skip to main content
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
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
  • 30.9k
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.8k
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
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.3k
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
  • 33.2k
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,509
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

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,845
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.3k
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.7k
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.3k
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
  • 297
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,473
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,845
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

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
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.3k
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
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,198
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,796
1 vote
Accepted

Replace existent link in org-mode with org-stored link

Unfortunately, org-insert-link (C-c C-l) on an existing link does not use org-stored-links, as you can see in its source: ;; Answers note: code taken from `org-insert-link' on commit ff8683aa35 ......
Zeta's user avatar
  • 1,103
1 vote
Accepted

mu4e (gnus) MS safelinks decoder

This is my answer, based on code from Wasamasa and Joseph Gay. Post version 1.6.0~54 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Microsoft safelinks ...
Ajned's user avatar
  • 764
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
1 vote

Don't open a HTML link if drag-and-dropped to Emacs

You can customize the Drag and Drop behavior using the variable dnd-protocol-alist. The ultimate fallback is inserting the link as text, so this is what you want: (setq dnd-protocol-alist nil) The ...
xuchunyang's user avatar
  • 14.6k
1 vote
Accepted

Can org-mode radio targets show their definition when hovering over them with the mouse?

I am pretty sure there is no definition associated with triple angle radio links in org-mode (https://orgmode.org/manual/Radio-targets.html). These can be in the middle of a line, for example, and ...
John Kitchin's user avatar
  • 11.9k

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