Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The tag has no usage guidance.

2
votes
0answers
38 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 ...
0
votes
1answer
23 views

Apply template to files created from an org-mode link

If you click on a file: link to a document that does not exist, org-mode will create this file for you. How can I get this behavior to work with a org-capture template, so that files created in this ...
0
votes
2answers
46 views

Org links file name encoding issue

Inspired by John Kitchin's presentation of org-links features in Org-mode 9, I tried to implement a simple functionality for "file" links. Since I am working on several machines, I wanted the link ...
1
vote
0answers
32 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 ...
0
votes
1answer
113 views

org-mode: create new link type for structured links to headings

After reading the org-mode manual I didn't find a way to construct structured links referring to headings with endless depth, like: having a file.org: * 1 ** 1 ** 2 *** 1 <---link here ...
4
votes
1answer
55 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 ...
1
vote
0answers
32 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 ...
1
vote
0answers
42 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 ...
1
vote
0answers
22 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)
2
votes
1answer
154 views

Validate internal fuzzy links in org-mode

Is there a function that will validate internal fuzzy links in org-mode? I would like to see which links resolve to headers (fontified in blue) and which ones are broke (fontified in red). John ...
3
votes
1answer
182 views

Org-mode custom youtube link syntax

I would like to defining a custom org-mode link, that accepts the following syntax: [[yt:<video ID>]] and produces an image link equivalent to this: [[https://youtu.be/<video ID>][http:/...
0
votes
1answer
75 views

Get Org Link Description From Table Column of Links

I have an org table and I want to take an existing column of org links of the form: [[http://blah.com/blah/blah/foo][foo]] And create an adjacent column containing only the description - i.e. foo. ...
0
votes
2answers
39 views

Deletion in the export of an org-link

I have defined an org-link as follows: (org-link-set-parameters my-link :follow (lambda (path) (message "This my link")) :export (lambda (path desc backend) "") ; I need to remove the space before ...
0
votes
0answers
30 views

Process a region as if org-links weren't there, then re-insert the links

I'd like to send a region to be wrapped by an external command (par), which works well enough on plain text when I simply do (call-process-region (region-beginning) (region-end) "par-format" t t 'nil "...
1
vote
1answer
133 views

Open org-mode link of gif image and display inside of Emacs buffer with command image-animate

I want to open gif image link (in Org-mode) with emacs lisp function image-animate. Here is my try. https://gist.github.com/e2e05b28e0a6bf3bd9f27f345696892d But I got some problems, how to open a temp ...
1
vote
0answers
24 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-...
1
vote
1answer
63 views

PDFView: allow vertical scrolling till the last line becomes the top one

I would like be able to link from an org buffer to a precise place in the PDF. When such a link is clicked, the PDF would be opened in a PDFView buffer on the required page and vertically scrolled so ...
1
vote
0answers
64 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 ...
1
vote
2answers
20 views

Using minibuffer while the cursor is on a org-ref citation link

When I run (y-or-n-p "Prompt") while the cursor is on an org-ref citation link, the prompt appears for a second and then disappears again to continue displaying the information about the article ...
2
votes
0answers
67 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 [[...
3
votes
1answer
101 views

How to export readable HTML links in Org mode?

When exporting an Org file to HTML all internal links of the form [[link]] are given section indicators of the form X.Y.Z. This makes sentences in which words have been linked unreadable. Input * ...
0
votes
1answer
32 views

How to insert text immediately before a link (at the start of a line) in org mode?

Consider the following org buffer test.org: H [[My Target][jump to my target]] <<My Target>> If I run org-toggle-link-display on this buffer I get: If I now move the cursor down to ...
1
vote
1answer
64 views

search options for non-file org links?

orgmode file links can contain additional information to link to particular places within a file, i.e.: [[file:~/code/main.c::255]] opens main.c and jumps to line 255. Is it possible to accomplish ...
1
vote
1answer
52 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
1answer
59 views

A non-intrusive way to modify one attribute of the link defined in a function

The following code from org-ref defines a citation link: (defun org-ref-define-citation-link (type &optional key) "Add a citation link of TYPE for `org-ref'. With optional KEY, set the reftex ...
1
vote
0answers
33 views

Org file: Change color of links if they point to a non-existing file/directory [duplicate]

Is it possible to have Org-mode links change color if the file/directory they're pointing to does not exist? I use the Leuven Theme, and links are displayed in blue. I'd like links to be displayed in ...
1
vote
1answer
91 views

Don't execute org-mode links to executables

I've managed to set up my org-file-apps mostly the way I want it, although one thing remains: I'd prefer if executable files were opened directly in Emacs since most of them are scripts that I'd like ...
2
votes
2answers
246 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?
0
votes
1answer
124 views

org-return-follows-link with org-wikinodes?

I've noticed that placing (setq org-return-follows-link t) in your init.el has no effect on links created by org-wikinodes.el. When you hit (or RET), it just cuts the link in half... One point to ...
0
votes
0answers
37 views

org-return-follows-link with broken links

Suppose you have (setq org-return-follows-link t) in your init.el file. Now open an org-mode buffer and create the link [[file:article.org][linked article]]. If this file does not exist, you can ...
9
votes
1answer
617 views

Fontify broken links in org-mode

If I create a bad [[file:link]] or an internal [[Link]] that does not exist, I would like to org-mode to fontify this using org-warning face. How can I get this done? Thanks,
8
votes
1answer
195 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 ...
3
votes
1answer
595 views

How can I get with org-store-link relative path instead of absolute?

How can I get with org-store-link relative path instead of absolute? I tried M-x customize-variable RET org-store-link, but did not work. Or do I have to customize it anywhere else?
0
votes
1answer
167 views

Is there a fast way to get a docview link to a specific page in a PDF document?

When I press "w" in eww-mode i get the link to the opened Homepage. Now I can yank this link very fast in an Org Mode file. How can I get such a link to a specific page in an open PDF document in the ...
2
votes
1answer
265 views

How to capture and link code comments as org agenda items?

I often see or leave comments in code projects like: //TODO more efficient hash on keys than BASE64? Ideally, I would like to be able to highlight a comment as such and org-capture it to an org file ...
1
vote
0answers
109 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 [[./...
5
votes
0answers
549 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 ...
8
votes
0answers
324 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
2answers
241 views

On orgmode link- dired like open with or open in dired current link?

I sometimes need to open links in org (mainly for image link) in an external editor (let's say gimp). Is there any way to do that? That is, instead of the default open link, add a open with option or ...
2
votes
0answers
99 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-...
0
votes
0answers
105 views

Automatic radio targets from org-mode headings

Is there a way to have org-mode headings automatically behave as radio targets? I would like to use org-mode as a private wiki... org-wikinodes is close. But I don't really want to deal with camelCase....
6
votes
2answers
1k views

Create image links in org-mode

I want to create clickable image links in org-mode. This would be equivalent to: <a href="path-to-file"> <img src="path-to-image"> </a> Currently, I can display inline image ...
1
vote
1answer
34 views

How to auto prefix with comment char when inserting code ref label with org-store-link

There is a way to link to a specific link of code in org babel src block. with org-store-link. Here is an example: ;;; This is comment | line. | (describe-char | (point)) ; | comment | (message | ...
0
votes
1answer
83 views

How to make org-mode support to open org-mode link in properties drawer?

Here is the Org-mode buffer example which has a properties drawer. ** Kelvin Hu :PROPERTIES: :BLOG: http://kelvinh.github.io/ :END: