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
3 votes
0 answers
32 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 ...
user avatar
  • 3,373
0 votes
2 answers
36 views

org-link: create a link to marked region of text

I want to create links to marked regions of text inside org files. if I use C-c l the active region is ignored; only the heading is stored. How can I create a link to a region of text? I use org-mode ...
user avatar
1 vote
1 answer
88 views

How to use the headline numbering for links in org-num-mode

I use org-num-mode to have headlines with a numbering 1.1.1 or 1.2.1... etc When I use org-insert-link, I want the default description to be this number. For now, it is the text in the headline but I ...
user avatar
  • 63
0 votes
0 answers
24 views

how to get org-super-link-insert-link to use same link selection menu as org-insert-link?

When I use the standard org-insert-link function, I get a nice menu buffer showing recently stored links -- the one with the header that says "Stored links are available with / or M-p/n (most ...
user avatar
  • 297
1 vote
1 answer
69 views

Orgmode link description without https

I would like to have a capture template that would take a pasted link like: https://orgmode.org/manual/Completion.html and return: [https://orgmode.org/manual/Completion.html][orgmode.org/manual/...
user avatar
  • 13
0 votes
1 answer
115 views

How to open a file (from an org link) within current window?

When I do C-c C-o on an org link it opens the org file in a new window. This is fine, but sometimes I'd prefer to open org files within the current window, creating a new key binding for the matter (...
user avatar
1 vote
1 answer
24 views

How can I prevent Orgmode from opening links to `*.jot` files using GNU `less`

When I open a link in Emacs Orgmode to a *.txt or *.org file, the files are opened in a new Emacs buffer. However, I have a self-created set of plain-text *.jot files. If I open an otherwise ...
user avatar
0 votes
2 answers
75 views

How to automatically build org links from an org-contacts contact?

Let's say I have the following contact in my org-contacts org file : * John Doe :PROPERTIES: :EMAIL: john.doe@gmail.com :PHONE: +44 20 7630 2400 :COMPANY: Ubuntu :NOTE: :END: How ...
user avatar
0 votes
1 answer
53 views

org-link-open fails with Wrong number of arguments: (1 . 1), 0

I recently added a config entry to my ./doom.d/config.el to enable Firefox as a default browser for opening links. Below is the entry I added based on this post. ;; Set specific browser to open links ...
user avatar
0 votes
1 answer
49 views

Customising org-mode link click behaviour

My current (default) behaviour when click a [[link]] in org-mode is for Emacs to search a matching heading. However, I wanted to redefine this behaviour to open a file called link.org. That is, for ...
user avatar
0 votes
0 answers
21 views

Highlight external links

I am looking for a way to visually distinguish between links to outside of emacs (http, https, yt & co) and links within emacs (file, id, ?) while viewing org in pretty mode. I was thinking of ...
user avatar
  • 224
1 vote
1 answer
47 views

How do you copy text with hyperlinks (text is not the link, the link is embedded (href style)), with the links into org mode?

I am copying text from a browser (from an email) which has hyperlinks such as link text - but the links do not get hyperlinked as in the email. I just see 'link text' when I paste to my org file. How ...
user avatar
  • 111
2 votes
1 answer
231 views

org-link to the exact page-position in a pdf file

Newest EDIT I think my question wasn't very clear, so I'm trying to put some details. With pdf-tools opening pdf files withing Emacs (PDFview buffers) works great. What I like is to get an org-link ...
user avatar
  • 326
1 vote
1 answer
101 views

nov.el follow link to .epub in other window instead of having a new buffer in the same window

When I try to follow a link [[nov:path/to/epub/ebook.epub][link]] in nov-mode (defined in nov.el) under Doom Emacs, it always opens the file on a new buffer, replacing the org file where the link sits ...
user avatar
  • 645
2 votes
1 answer
49 views

Disable 'beautification' of text when point is on same line in org

When writing org documents, some parts of the text (like links and figures) automatically get 'beautified' (I'm unsure what the technically correct term is), meaning that some surrounding text ...
user avatar
  • 175
0 votes
0 answers
25 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][...
user avatar
  • 1,668
0 votes
1 answer
84 views

How to delete a link in org mode in spacemacs

I was trying to delete a link and replace it with the description in org mode. And I thought there would be a command to do it. But I could not find one. There is a solution here. But the question is ...
user avatar
  • 1,668
0 votes
0 answers
38 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 ...
user avatar
  • 326
1 vote
1 answer
787 views

org mode open link in browser directly

Suppose, we have a link [[https://www.google.com/][Google]]. When I put the cursor at the link and run org-open-at-point, instead of opening https://www.google.com/ in browser it downloads the page to ...
user avatar
  • 845
1 vote
0 answers
88 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 ...
user avatar
  • 1,668
2 votes
1 answer
22 views

Why does `next-error` change my buffer as keyboard macro, but not in lisp code?

My goal is to use grep to find other Org files, use next-error to switch to those files, copy the link to the grep match, then go back and paste that link. It worked for a long time as a macro, but ...
user avatar
1 vote
1 answer
420 views

Insert link to a heading with ID

Running Doom Emacs 2.0.9 on Emacs 27.1. In an org file, I have: * First heading :PROPERTIES: :ID: 89f7215b-60b1-45c8-8262-b0e10db18f4c :END: * Second heading I got that ID by using org-id-...
user avatar
  • 1,668
1 vote
0 answers
24 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: ...
user avatar
  • 366
0 votes
0 answers
34 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 ...
user avatar
2 votes
1 answer
192 views

Changing the default binding to open a link in an org mode file using RET

To open a link in an org-mode file one normally types C-c C-o. I find this rather cumbersome. I would like to rebind the command org-open-at-point to RET but only when the cursor rests on the link. I ...
user avatar
  • 1,060
0 votes
0 answers
65 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 ...
user avatar
  • 1,768
0 votes
0 answers
31 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, ...
user avatar
  • 645
0 votes
1 answer
30 views

Replace org link description with org link output (shell type)

I've stored several links to various shell commands and I would like to update each link description with the output of the correspoding shell command. For example: View in text-mode: [[shell:echo &...
user avatar
3 votes
1 answer
180 views

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

Assume that I have a hyperlink to a file in org-mode - [[file:~/Documents/one_document.txt][this is a link to one file]] And then for some reason I want to update the linked file to some other file ...
user avatar
  • 566
1 vote
3 answers
217 views

Is there a way to create an org-mode link that opens help?

For example: * Purpose Keep some notes to elisp functions. [[link:elisp-func][elisp-func help]] I want to open the link via C-c C-o which would show a buffer with help as though I had ran instead: C-...
user avatar
1 vote
0 answers
51 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 ...
user avatar
  • 224
2 votes
1 answer
124 views

Open a wildcard-link directly rather than through dired

In Org mode, when I open a link (C-c C-o) to a file such as file:something.pdf, the file is opened with my system PDF viewer. However, if the link contains a wildcard, such as file:3_o*.pdf, Emacs ...
user avatar
  • 224
0 votes
0 answers
57 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/...
user avatar
  • 1,499
0 votes
1 answer
52 views

Link to footnote export as non-superscript

Links to a footnote automatically exports as superscript in LaTeX. Source: Lorem ipsum dolor sit amet, consectetur adipiscing elit. [fn:1685d75dd9ccdec5: This is a footnote.] In sed erat porta, ...
user avatar
  • 645
1 vote
1 answer
118 views

Efficient way to insert multiple file links (residing in the same directory) into a org file with helm

Suppose I edit an org-file, say /foo/bar/file.org and I want to insert links to multiple files living in another path, say /another/path/to/files/. A stupid way to do this would be to call helm-find-...
user avatar
  • 967
1 vote
1 answer
197 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 ...
user avatar
  • 11
2 votes
1 answer
371 views

How to set width for subfigures inside a table in a org-mode file?

I'd like to use subfigures in org-mode files. In MS Word, this could be easily done by inserting the subfigures of a figure into a table with invisible borders. Then the size of each subfigure can be ...
user avatar
  • 910
2 votes
1 answer
75 views

org export interanl [[links]] to keep link text

When exporting a document such as: * Title Link to [[Title]] The link text is converted to the section number. I.e. 1. Title Link to 1 Is there a way to keep the link text e.g.: 1. Title Link ...
user avatar
  • 375
1 vote
1 answer
44 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 "...
user avatar
  • 1,298
2 votes
0 answers
59 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 ...
user avatar
  • 21
0 votes
0 answers
320 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 ...
user avatar
3 votes
2 answers
114 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 ...
user avatar
1 vote
0 answers
58 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 ...
user avatar
  • 175
1 vote
0 answers
100 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 ...
user avatar
0 votes
0 answers
27 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 ...
user avatar
2 votes
2 answers
225 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 ...
user avatar
1 vote
2 answers
201 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 ...
user avatar
1 vote
0 answers
112 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("...
user avatar
  • 439
0 votes
0 answers
63 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 ...
user avatar
  • 645
0 votes
1 answer
25 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 ...
user avatar
  • 3