The org-mode documentation says that

Once a link in the buffer is complete, with all brackets present, Org changes the display so that ‘DESCRIPTION’ is displayed instead of ‘[[LINK][DESCRIPTION]]’ and ‘LINK’ is displayed instead of ‘[[LINK]]’.

If I type


When I finish the final bracket and press SPC, indeed the links shortens to only show the word website. This is what I want.

However, if I type


This does not shorten. It always displays in the raw as above. If I put my cursor over test and press ENTER, a new window opens with that (existent) file opened.

How can I make the file link behavior mirror that of a website?

EDIT: I highlighted an entire link and ran font-lock-studio-region, which output a 200 line file. One thing I noticed is a line that says

  (0 nil)

I wonder if that has something to do with it. The whole file can be found at https://pastebin.com/REzWfG53

My versions:

GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2019-09-16

Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ /home/caleb/.emacs.d/elpa/org-plus-contrib-20191230/)

Ubuntu 18.04.04 64bit

  • 1
    Prettifies for me. Could you try with emacs -q? – Rusi Feb 25 '20 at 6:54
  • 2
    Maybe related: emacs.stackexchange.com/questions/55720/… You should perhaps add all version info: emacs-version, org-version, OS-version Could be we can detect an error scheme. – Tobias Feb 25 '20 at 9:07
  • Thanks for the cross link. Let me try that font lock thing. I tried swapping out extensions for like .txt or just none at all and it still didn't fold. But I do suspect it's something with font-lock based on vague other googling I was doing. – Caleb Jay Feb 25 '20 at 18:43
  • Actually, changing the extension from .org did cause it to "collapse" properly. Super weird. – Caleb Jay Feb 25 '20 at 19:12
  • It may have something to do with the org-roam package github.com/jethrokuan/org-roam/issues/180 – Caleb Jay Feb 25 '20 at 19:20

Your Answer

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

Browse other questions tagged or ask your own question.