For example:

- modes/mu4e/mu4e.org

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.

1 Answer 1


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? Commented Sep 18, 2015 at 23:36
  • Or the default value adaptive links like file:~/Org/Emacs/modes/data/images/kk.png will exported as correct url path? Commented Sep 18, 2015 at 23:39
  • Can also be achieved via M-x customize. Commented Apr 17, 2019 at 23:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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