Questions tagged [org-link]

The org-link tag should be used for questions about links in org-mode files. This is a feature of org-mode that allows users to include hotlinks to org headings within the same file, to other files on the same computer (e.g. text, emails, pdfs), to urls for internet resources. Additional link types are provided by external packages.

Filter by
Sorted by
Tagged with
0
votes
1answer
33 views

Override org-insert-link for those that match a pattern

I often need to keep track of conversations that happen in Slack, so I wrote a small elisp package that retrieves all message info (channel, timestamps, message(s)) for a given Slack permalink. Then ...
1
vote
1answer
31 views

Automatically open headline on internal link

The following example implements an internal link to a headline: * Heading1 - Important facts * Heading2 - Jump to [[*Heading1][Link]] When following/opening the "Link" with C-c C-o, point moves to "...
2
votes
2answers
71 views

In Org mode how to link to a specific line or keyword in a Help or Texinfo page?

For example, I want to create a link pointing to line 16 or the start of the first found keyword "binding" in the projectile mode help page ([[help:projectile-mode]]). I tried the double colon format ...
1
vote
0answers
27 views

org: Internal link with automatically updating description, is it possible?

I use the CUSTOM_ID property for internally linking to headers. When I insert a link somewhere, I can either: leave its description empty, which results in the buffer showing #<id>; or put the ...
0
votes
1answer
67 views

Alternate citation with Org-Ref

I am used to manage my bibliography with org-ref and I am very satisfy with it. Nevertheless, in the context of a grant proposal writing, space is limited. So I would to save the space allowed to ...
0
votes
0answers
36 views

Drag and drop a file to org buffer to insert a link to this file

On Windows it is possible to create a link holding the Meta (Alt) key while dragging a file. Is it possible to create a link to a file when it is dragged from an Explorer over to emacs holding the ...
3
votes
1answer
65 views

Package that links words as they are typed to existing org-files/-headers?

A silly question. I try to link my org-files more closely together. I looked into org-roam and org-brain but i'm not convinced that these packages provide what i have in mind (haven't tested it). As ...
0
votes
1answer
46 views

Open file in orgmode with external application. Check if file exists and create file from template if necessary

I want to create a file with org-open-at-point from a template if that file does not exist. If it exists, I want to open it in an external app. In org-mode, file-links are created by [[file:path-to-...
1
vote
0answers
36 views

Linking source file in org mode with specific revision

I need org-mode version of links like this https://github.com/emacs-mirror/emacs/blob/cd2c1561636597c67edbf3daf10388e5385a93fc/etc/NEWS#L1119 for local files inside local repo. A way to specify not ...
0
votes
0answers
23 views

How to suggest org-link description when completing?

I have a custom org link created using org-link-set-parameters. If I use org-insert-link and complete it will use the :complete function from the parameters to get the link. However I haven't found a ...
0
votes
0answers
12 views

Fontify broken url link in org-mode & HTTP 443 error

It's known that we can fontify broken file link as discussed here, but If I do something similar concerning broken url link... (defun org--url-face (url) "Define a dynamic face for url links." (...
1
vote
1answer
104 views

Debugging a function called when hovering with the mouse over an org link

I am trying to debug a function called when hovering with the mouse over an org link. For example, I instrumented bibtex-completion-apa-get-value with edebug-defun. However, when I hover over an org-...
0
votes
0answers
26 views

How to create plain text links or string variables that is displayed as its value in the buffer?

In my org-mode documents I want to be able to write: #+VAR: that_year=2020 and then somewhere in text use it like: "And [[var:that_year]] we are going to..." which should be interpreted and ...
0
votes
0answers
34 views

org-link-open: Wrong number of arguments: (2 . 2), 1

lately I am often given this error, .e.g. when trying to open pdf files within Emacs. the stack trace reads Debugger entered--Lisp error: (wrong-number-of-arguments (2 . 2) 1) org-docview-open("...
12
votes
1answer
1k views

How to get automatic backlinks when linking files in in org-mode?

Is it possible to automatically create backlinks to org-mode links? When a link to file B is added to file A, then also a link to file A is added to file B (i.e. the links are symmetrical - going both ...
1
vote
1answer
89 views

How do I show org links pointing to an entry?

I have org-capture templates setup (but the default Todo template works the same way) to create a link in the resultant file to the text that was selected when org-capture was invoked. This allows me ...
0
votes
0answers
29 views

Internal and External link search broken in org 9.3

Links seem to be broken in org-mode 9.3 [[link-to-text]] [[*link-to-heading]] [[file:path/to/file::*heading]] [[file:path/to/file::search-string]] The following searches all bring point to the ...
0
votes
1answer
15 views

How to make org file type link search work with numbers?

I am trying to using a link to jump to a number in another org file. Searching for keyword numbers works for internal links but does not when searching in a different file. It works with words but not ...
0
votes
1answer
46 views

org-mode: link to tag/target inside a source code block

I'd like to place a link to a tag or target inside a source code block. #+BEGIN_SRC emacs-lisp (use-package evil :ensure t :config ; enable per default (evil-mode ...
3
votes
0answers
43 views

Add a source reference to org blocks

During research, I often cite a passage from some website, a local document or org file. For context and later use, I always add the source reference after the block: * Public transport ** Bus Buses ...
0
votes
3answers
98 views

How to suppress output of link with elisp function in org-mode?

When using elisp function in the link in org-mode, like [[elisp:(func)][text]] after clicking the link, the function itself will be printed in *Message* buffer. How should I prevent it from being ...
0
votes
0answers
53 views

org-mode “prettifies” URL links, but not file links

The org-mode documentation says that Once a link in the buffer is complete, with all brackets present, Org changes the display so that ‘DESCRIPTION’ is displayed instead of ‘[[LINK][DESCRIPTION]]’ ...
2
votes
1answer
89 views

Org Mode use radio target for Chinese Texts

Radio targets in org-mode work by recognizing spacing between words. This makes the function redundant in when work wth Chinese and Japanese texts. I discovered an interesting function in ol.el with ...
0
votes
0answers
16 views

Footnote link broken when converting to table.el format

Org mode footnotes within table cells are broken when converting to table.el format with C-c~. * Org Table | col1 | col2 | col3 | |-----------+------+----------------| | some text | ...
0
votes
0answers
56 views

Org mode link in comments

Is there a way to make links work in comments? # Comment with [[link]] link Error Message: edmacro-parse-keys: C-M- must prefix a single character, not up The link would work only when separated ...
1
vote
2answers
52 views

Org Mode link to structure blocks

Is there a way of linking to a specific structure block in org mode? I have a block of text as follows: * Heading Some text ** Subheading some text #+BEGIN_PROSE Lorem Lorem ipsum dolor sit ...
0
votes
1answer
66 views

Elisp function to get path to file link target

With the cursor on a file link, I'd like to set up an org-capture template which inserts the template into the target of the link. I guess I add something like (setq org-capture-templates '(("m" ...
2
votes
1answer
116 views

how to display target of an org-mode link in the echo area or as tooltip?

In org mode when I hover over a link, I get a tooltip that shows the target of the link. But I'd like to see the target when I just move point onto a link, either as a tooltip or in the echo area. For ...
0
votes
1answer
53 views

browse-url-at-point opens link text

I have a link in my org file such as [[https://google.com][mylink]]. When I put the point over "mylink" and run M-x browse-url-at-point my browser opens "http://mylink.com". Is there a different ...
2
votes
1answer
102 views

org mode link with just the non-directory part of the file name

Is there a method to link files without specifying their absolute file name nor their relative file name; just the non-directory part of their file name? I remember stumbling into one when browsing ...
0
votes
0answers
22 views

Org mode:inks to file text snippets stopped working after upgrade

I have an org file referencing to another file with links containing # symbols: [[./crawler.pl::#top level processing][top level processing]] It worked fine until I upgraded Emacs to 26.3 and org-...
3
votes
3answers
635 views

Org-mode link to function definition

Is it possible to link to a function definition in a source code file, rather than a fixed line number?
1
vote
2answers
673 views

How can I change external program to open org URLs for one org file only

In my Emacs config, I have set Firefox to be the browser to open URLs with, (setq browse-url-browser-function 'browse-url-firefox) Now, I have one org-mode file, in which I would like to open URLs ...
0
votes
0answers
43 views

Show all links from files in org-agenda-files pointing to the header at point

My question is fairly basic and I'm struck that it hasn't been asked before on emacs.SE as far as I can see: How can I see all links pointing to a header at point? This should also include links ...
0
votes
1answer
109 views

list internal org-mode links

How can I see a list of internal links in an org-mode document? I would like a quick way to link within my document without needing to retype/remember all my internal links. The documentation states,...
0
votes
1answer
52 views

org-publish-project fails because of defective org-links - repair links automatically or ignore them?

I'm trying to "quickly" export my notes ans tasks from org-mode to a html-page with org-publish-projects. I had a working setup some years ago and I'm trying to reactivate it, but doing the export ...
1
vote
0answers
46 views

OrgMode table text narrowing issue with links

I have an issue with my GNU Emacs 26.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.8) of 2019-04-30 in OrgMode. I have a table. One of its collumn is filled with internal links (inside ...
2
votes
1answer
477 views

Org-Mode: Link files with IDs and not Filenames

I want to use Org-Mode as a wiki so I need to have an index of all my org files. In it I want to have a list of links to all those files, but my problem is that I have found no way to link pages with ...
1
vote
0answers
56 views

opening org link in dired

[[D:/dev::line][code]] stores the link to my code directory. How can i used dired to open it in emacs. Currently with this code explorer opens the directory. I'm using Windows 7.
0
votes
1answer
21 views

How to make linked word in org-beamer stands out?

I am using org-mode with Beamer. Using the Barkeley theme, I wrote something like this: To [[http:www.google.com][Google]] However, the outputed slide doesn't indicate any hint of the word "Google" ...
0
votes
0answers
97 views

org-insert-link sometimes produces “wrong type argument: stringp, nil” after prolonged use of emacs

It usually happens after a couple of days of use that C-c C-l / org-insert-link inside .org files does not allow me to insert new links anymore. What I want to do is interactively insert link ...
0
votes
0answers
23 views

Org links to regex under portable subtree

Is it possible to have links like this? [[id:a5e9935a-9b82-480d-9c27-74a71bfac27a::/regex/]] That is, links to a match under a portable subtree? This, at least, did not work. (By portable subtree, ...
6
votes
1answer
139 views

keep focus when opening weblinks in browser from org mode

Hi I'm heavily using the feature C-c C-o in org mode to open the links in org mode in my firefox. I have org lists with these links and I want to open a bunch of them and then go through this websites ...
2
votes
2answers
310 views

Update target of internal org-mode link

I have a document full of internal org-mode links of the form: * Target Heading ... [[Target Heading][Description]] However, these break whenever I edit the heading that they link to, so I want to ...
0
votes
0answers
65 views

Merge org-mode headings without breaking links

I have a large collection of notes in org-mode, each with it's own heading and org-id. For example * Note one :PROPERTIES: :ID: 403847B2-3D4C-4EFB-96DE-E0C5C52A02B5 :END: * Note two :...
3
votes
0answers
70 views

Convert internal org-mode links to org-id links

I have a document with a large number of internal text links. Some are formatted like this [[Link to Heading]] while others have descriptive text: [[Link to Heading][description]]. I would like to ...
0
votes
1answer
155 views

Problem creating an org-mode link to a pdf file from PDFView

When I try to store a link to a pdf file (opened with PDFView), I get the following error Unable to percent escape character: \342 The link is stored with the following url: Stored: file:/tmp/...
7
votes
1answer
271 views

How can I manually set links in org mode?

So I'm trying to make an "autolinks mode" to emulate the functionality of notetaking software like Tomboy Notes or notes.vim, which automatically linkifies any text that happens to be the title of a ...
0
votes
1answer
157 views

Org mode: #+INCLUDE remote files?

I regularly use Org mode's #+INCLUDE command to include local files in my Org file. Now I'm wondering if there is a way to include remote files (i.e. files that I reference via a URL) into my main Org ...
8
votes
0answers
552 views

How to expand external files inline on orgmode?

I know I can use something like #+INCLUDE: "./filepath" but this has effect only when I export the file. I can also use link like [[./filepath]] but I have to type C-c C-o to go to the content. How ...