4

For example:

- modes/mu4e/mu4e.org
      `-data/images/kk.png

in file mu4e.org, when insert link with [C-c C-l], the link file:../data/images/kk.png will auto expand to file:~/Org/Emacs/modes/data/images/kk.png.

4

The default value of org-link-file-path-type is adaptive, which means make relative links if the link is to the current directory below, otherwise fully qualify the link.

You can force it to always be relative like so:

(setq org-link-file-path-type 'relative)

You can fully-qualify links on a link-by-link basis by passing one universal argument C-u.

  • If I force to use relative links, will org export links with relative url? – stardiviner Sep 18 '15 at 23:36
  • Or the default value adaptive links like file:~/Org/Emacs/modes/data/images/kk.png will exported as correct url path? – stardiviner Sep 18 '15 at 23:39
  • Can also be achieved via M-x customize. – Julien Chastang Apr 17 at 23:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.