Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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.

58 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
124 views

org-mode - how to ignore link syntax inside of src blocks?

The link syntax [[link]] is parsed as an org-link inside of a source block, as shown in the code and figure below, where my mouse if placed on top of [[2]]. #+begin_src emacs-lisp [[2]] #+end_src ...
Daniel's user avatar
  • 3,653
4 votes
0 answers
89 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 ...
Bas Peeters's user avatar
4 votes
0 answers
2k views

How to embed external file contents in org file?

I'm creating a simple bash tool that uses various flags/arguments from the user, and I'm using an org file for the documentation. I have several examples and I'd like to include some explanation of ...
haff's user avatar
  • 218
3 votes
0 answers
319 views

Find broken links and unused IDs

I extensively use links to refer to different org files/ headings. All my links are created using IDs. But it might happen that in the course of work, some links might get broken --- the reference is ...
deshmukh's user avatar
  • 1,912
3 votes
2 answers
2k 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-...
jollaWellbuur's user avatar
3 votes
0 answers
125 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 ...
Adam's user avatar
  • 1,897
3 votes
0 answers
149 views

Faster way to store an org link to an identifier in a projectile project?

I'm trying to come up with a faster workflow for storing org-file links to parts of a source code tree. I'm generally starting in my org file taking notes, doing a helm-ag to search for some function ...
Anton I. Sipos's user avatar
2 votes
0 answers
44 views

Attaching metadata to Org link abbreviations?

Is there some way to attach metadata to Org link abbreviations? Something like: #+LINK: Example https://example.com [metadata about link] For example, date linked, a rating, a reason the link exists,...
stu002's user avatar
  • 85
2 votes
0 answers
178 views

Autocomplete when editing file links

When I insert a link into an org-file using C-c C-l (Doom Emacs, if that matters) and select file:, it show me the files in the current directory to autocomplete from. However, when editing such a ...
xeruf's user avatar
  • 354
2 votes
0 answers
76 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 ...
Y. Dvir's user avatar
  • 21
2 votes
0 answers
177 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 ...
Erik Sjöstrand's user avatar
2 votes
0 answers
133 views

Copy/Paste relative links between buffers

How can I copy (relative) links and regions with (relative) links between buffers? Buffer c:\path\to\a\a.org contains links of the form * A section with links This is a link to another org-file [[...
guest's user avatar
  • 29
2 votes
0 answers
257 views

Easy completion for internal links to figures/images?

I am writing a manuscript and I want to be able to reference my figures in the manuscript which I have included like the manual suggests: #+CAPTION: Figure caption #+NAME: fig:my-figure [[./...
salotz's user avatar
  • 1,410
2 votes
0 answers
219 views

Links inside org-mode tables are not typeset in monospaced font

While the default is a proportional font, I told org-mode to use a monospaced font in tables: (add-hook 'org-mode-hook (lambda () (variable-pitch-mode t))) (with-eval-after-load 'org (set-face-...
Timm's user avatar
  • 1,599
2 votes
0 answers
367 views

Automatic radio targets from org-mode headlines

Is there a way to have headlines in org-mode automatically behave as radio targets? Basically, I am looking for each line starting with * get turned into a radio target. For example: * My Headline ...
Adam's user avatar
  • 1,897
1 vote
0 answers
30 views

Org mode: How do I create links with spaces in the directory names?

It seems that I can have links where there are spaces in the filenames, but not in directory names. For example: [[file:FC2/VA/Veterans_Payment_Statement/22-03-05 VPS.jpg][22-03-05 VPS.jpg]] works, ...
RonG's user avatar
  • 11
1 vote
0 answers
26 views

Track navigation after opening an org link

This is a longshot, but does the following exist already? You have an link in your org file like: * TODO Learn elisp [[info:eintr#Arguments][eintr#Arguments]] You open that link. You go to the next ...
hbogert's user avatar
  • 191
1 vote
0 answers
25 views

Open links in the nearby window (no splits)

I have a 24 inch display and usually have 2 windows open: |-------+----------------| | Links | Working window | | (30%) | (70%) | | | | |-------+----------------| When I ...
user4035's user avatar
  • 1,069
1 vote
0 answers
32 views

Add the ID property of headings as the `name` attribute in the HTML export

E.g., suppose I have this heading: * some heading :PROPERTIES: :ID: 6d4e4087-4b74-4c74-8195-19b4ccd3e8fe :END: I like the exported HTML element to have the attribute name="ID-6d4e4087-4b74-...
HappyFace's user avatar
  • 830
1 vote
0 answers
39 views

How can I tell emacs to choose the 'right' link function from `org-store-link-functions` based on the mode it was triggered in

Whenever I want to capture a link from a PDFView buffer with org-store-link, I get prompted for the link type I wish to apply ("Which function for creating the link? "), with two choices: ...
chriad's user avatar
  • 396
1 vote
1 answer
346 views

org-mode: specifying a hyperlink target as regex and jumping directly to match?

The documentation of a Fortran code, being done in org-mode, is intended to be done in such a way that changing the Fortran source code to be documented should be kept at a minimum. There is the ...
Harald's user avatar
  • 11
1 vote
0 answers
88 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 ...
JAre's user avatar
  • 185
1 vote
0 answers
178 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("...
CD86's user avatar
  • 573
1 vote
0 answers
149 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 ...
Sati's user avatar
  • 815
1 vote
0 answers
84 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 ...
bvn13's user avatar
  • 11
1 vote
0 answers
116 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.
Aviik's user avatar
  • 41
1 vote
0 answers
264 views

Run some commands before and after clicking open a certain type of org-mode link file in its associated app

Whenever I click on a mp3 or mp4 org-mode link, I'd like my files to open in their associated app after running some relevant applescripts I have. I also have some scripts that I'd like to run after ...
stacko's user avatar
  • 1,597
1 vote
0 answers
73 views

How can I add functions to provide http links?

A recent feature request raised a new area of integration/customization for me. I've developed a package to browse GitHub content and we'd like to be able to store a link to the current 'thing' using ...
Sean Allred's user avatar
  • 6,941
1 vote
0 answers
37 views

How to use org-link-search as true or false?

I want to test whether an internal org-mode link exists. org-link-search seems like it could work... is there some way to configure this like: (if (org-link-search "my link") 1 0)
Adam's user avatar
  • 1,897
1 vote
0 answers
30 views

Disabling the special meaning of either `+` and/or `|`

I came across a case where strike-through and table interfere with the proper operation of org-links (which, in my case are org-ref citations). Here is a minimal example: +-+ |cite:VemulaMO2016c-Path-...
AlwaysLearning's user avatar
1 vote
0 answers
131 views

A screenshot that links to a page from PDF

Suppose that I have a link to a screenshot of part of a PDF page in an org buffer. How can I change the behavior of the link so that, when the displayed inline image is clicked, instead of opening the ...
AlwaysLearning's user avatar
1 vote
1 answer
214 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-...
AlwaysLearning's user avatar
0 votes
0 answers
37 views

Internal link to a headline by it's number in org-mode

I'm using dynamic headline numbering in my org file and I want to use those numbers as a internal link targets. For example within a org file structured like this: * 1 section ** 1.1 subsection I can ...
Bazinevis's user avatar
0 votes
0 answers
14 views

define a special org-link face inside of org-table, different from outside?

I'd like to define a special org-link face inside of org tables, such as to set link to fixed fonts within a table, and to variable fonts outside. I tried to play with custom-theme-set-faces in ...
Laurent Jacques's user avatar
0 votes
0 answers
36 views

Is there a way to hide link prefixes in org-mode?

For some link types it would be nice to hide the link prefix automatically. This post does this with text properties, but I'd prefer if it was possible to do with something like prettify-symbols or ...
user41177's user avatar
  • 121
0 votes
0 answers
11 views

How to prevent org-exporter from prepending "file://" to the beginning of absolute file paths when exporting to HTML?

I use org-mode to write HTML pages for a website. When I use relative links for navigating the website's directory structure in my org-mode files and I export the org files to HTML, the links work as ...
Blender's user avatar
  • 25
0 votes
0 answers
12 views

Does `get-char-property-and-overlay(nil org-image-overlay)` mean that the first argument was nil or `org-image-overlay`?

I've spent over 20 hours trying to solve an issue with org-mode loading. I've stepped through the code until it reached a function that stack trace indicates fails due to one of the arguments being ...
Daniel Krajnik's user avatar
0 votes
0 answers
31 views

Opening hyperlinks stops working when browser runs in sandbox (firejail)

Opening links (e.g. [[https://www.example.com][example]]) stops working when browser (librewolf) runs in a sandbox (firejail). The only output it gives is "nil". It works again when sandbox ...
Daniel Krajnik's user avatar
0 votes
1 answer
48 views

why the inconsistency with org mode code line labels and links

In org mode and in a source code special block, I can add code line labels, which have ref: in the label -- but when I make a link there, I have to omit the ref:. For example: #+begin_src csharp 1044 ...
Dan Drake's user avatar
  • 625
0 votes
0 answers
51 views

How can I modify the default description when using org-insert-link with custom IDs in org-mode?

I use CUSTOM_ID in my documents for internal links. To copy a link, I use org-store-link (C-c l) and then org-insert-link (C-c C-l) to insert the link elsewhere. However, org-insert-link does not ...
NandKN's user avatar
  • 1
0 votes
1 answer
133 views

Link to pdf file using org-pdftools not working

I am using the following format in my org file [[pdf:file_path.pdf][description]] to link to the file_path.pdf file. When I click on the link I expect the pdf file to open. Instead, I get a dialog box ...
vpk's user avatar
  • 115
0 votes
0 answers
37 views

How to open multiple files from multiple org-links?

* Headline 1 - [[https://orgmode.org/][Org-Mode]] - [[https://www.gnu.org/software/emacs/][GNU Emacs]] * Headline 2 - [[~/tmp/file1.org][First file]] - [[~/tmp/file2.org][Second file]] When the ...
crocefisso's user avatar
  • 1,353
0 votes
0 answers
33 views

two behaviors for org-return-follows-link

In my org-mode config I have activated org-return-follows-link to access links with the return key. For instance, if a link points to a pdf, I have configured org-mode to open it with certain pdf ...
Laurent Jacques's user avatar
0 votes
0 answers
45 views

Error in org-mode exported docx when shell command link contains two inverted commas

I have stored a link to a shell command, which contains inverted commas ", and I would like to export it to odt. For example, if I try to export the following link [[shell:TDIR="/home/...
Ajned's user avatar
  • 764
0 votes
0 answers
41 views

Stop links from auto-expanding

Running Spacemacs 0.300 on Emacs 27.2. When my cursor is on a link in an org buffer, the link automatically expands. So, what appeared as 'Description' changes to something like [[id:xxxxxx][...
deshmukh's user avatar
  • 1,912
0 votes
0 answers
48 views

Make link using the target at point and ignore the ID or CUSTOM_ID

Following situation: * Headline :PROPERTIES: :CUSTOM_ID: ignore_it :END: ... ... long text ... ... <<this is the target>> ... ..... some other long text With org-store-link (C-c l) I get ...
rl1's user avatar
  • 356
0 votes
0 answers
47 views

How to link checkboxes in Org Mode

* Core - [X] CS 501 - [X] CS 502 - [X] CS 503 - [ ] ORG 601 [Fall 2021] - [ ] ORG 602 [Fall 2021] - [ ] ORG 603 [Fall 2021] * Schedule ** Spring 2021 - [X] CS 501 - [X] CS 502 - [X] CS 503 ** Fall ...
mcp's user avatar
  • 556
0 votes
0 answers
105 views

Why does my org-link-beautify extension generate many timers?

I wrote an extension org-link-beautify. It uses text properties to display all-the-icons icon for links. When I use list-timers, I found many timers like this: UPDATED of command list-timers (show ...
stardiviner's user avatar
  • 1,938
0 votes
0 answers
38 views

Link broken in inline comment

[[link]]@@comment:[[link]]@@ # [[link]] * link I get the message "No Link Found" when clicking on the [[link]] within the inline @@comment:[[link]]@@. The link works fine with emacs -Q, ...
Sati's user avatar
  • 815
0 votes
0 answers
73 views

Why is Org mode converting spaces in links to HTML entities?

I store a link such as [[file:~/path/to/dir/some file.txt::# heading]], either manually or through org-capture. A few days later, Org has converted all spaces to the HTML entity %20: [[file:~/path/to/...
emonigma's user avatar
  • 1,907