# Backlinks in \*org-roam\* buffer

**URL:** <https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947>\
**Category:** Troubleshooting\
**Created:** [August 15, 2021, 4:38pm UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947 "2021-08-15T16:38:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![aschokker](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@aschokker](https://org-roam.discourse.group/u/aschokker)\
**Post date:** [August 15, 2021, 4:38pm UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/1 "2021-08-15T16:38:56Z")

</div>

Hello, I just started using Org-roam V1 (simply installed from Debian GNU/Linux repo) without knowing V2 has been released… Since V2 is in active development, I switched to V2 (org-roam package including dependencies installed from MELPA).

In V1 the backlinks in the org-roam buffer were active links which navigate the user to the files which contain the forward links. Very convenient behavior. However, in my V2 setup, the backlinks are no active links, they are just text, i.e. filename in bold white characters followed by “(Top)”. I can’t imagine this is expected behavior in V2… Do I miss something?

I uploaded V1 and V2 screenshots.

This is my setup:

- Emacs 27.1
- Org-mode 9.4.6
- Org-rom 2.0.0

Screenshot V1:

 ![screenshot-org-roam-v1-backlinks](https://global.discourse-cdn.com/free1/uploads/orgroam/original/1X/9749e1235060bd4833d764684f05b86bc92e3095.png)

Screenshot V2:

 ![screenshot-org-roam-v2-backlinks](https://global.discourse-cdn.com/free1/uploads/orgroam/original/1X/54ef2ebc8ba699d1d7cdd994cae93598883110cf.png)

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [August 15, 2021, 4:44pm UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/2 "2021-08-15T16:44:01Z")

</div>

Use enter key to navigate to the node at point.  
If you would like a mouse click to work, refer to [this part of the wiki](https://github.com/org-roam/org-roam/wiki/Hitchhiker's-Rough-Guide-to-Org-roam-V2#navigation-in-backlink-buffer).

---

<div class="post-metadata">

**Author:** ![aschokker](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@aschokker](https://org-roam.discourse.group/u/aschokker)\
**Post date:** [August 15, 2021, 4:54pm UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/3 "2021-08-15T16:54:13Z")

</div>

Thanks a lot for your prompt answer nobiot.  
I did not know it was that simple…

---

<div class="post-metadata">

**Author:** ![jbotz](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/jbotz/32/616_2.png) [@jbotz](https://org-roam.discourse.group/u/jbotz)\
**Post date:** [August 16, 2021, 11:33am UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/4 "2021-08-16T11:33:05Z")

</div>

Hmm… when I run org-roam-buffer-visit-thing in the org-roam buffer I always get “There is no thing at point that could be visited”, even though the point is on a node name that I can find just fine with “org-roam-node-find”.

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [August 16, 2021, 12:27pm UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/5 "2021-08-16T12:27:54Z")

</div>

> [@jbotz](#):
>
> when I run org-roam-buffer-visit-thing

How do you do this? M-x?  
RET is re-mapped to a different command via various maps depending on where in the org-roam buffer your point is.

---

<div class="post-metadata">

**Author:** ![jbotz](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/jbotz/32/616_2.png) [@jbotz](https://org-roam.discourse.group/u/jbotz)\
**Post date:** [August 16, 2021, 12:31pm UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/6 "2021-08-16T12:31:41Z")

</div>

I use Spacemacs, so RET is “evilified”, but C-RET has org-roam-buffer-visit-thing bound to it and should work but doesn’t. Just in case, I also tried to just invoke it M-x with the same results.

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [August 16, 2021, 12:40pm UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/7 "2021-08-16T12:40:18Z")

</div>

I see. I don’t know how Spacemacs works. No problem on my Emacs with no framework.

---

<div class="post-metadata">

**Author:** ![aschokker](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@aschokker](https://org-roam.discourse.group/u/aschokker)\
**Post date:** [August 16, 2021, 5:24pm UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/8 "2021-08-16T17:24:18Z")

</div>

Hi nobiot, Enter key works perfectly indeed (navigates to node at point). I’m still struggling with getting the mouse to work. I followed the instructions you referred to, but get “There is no thing at point that could be visited” message in minibuffer when clicking the backlink in the _org-roam_ buffer. My Emacs is also without framework. Do you have any suggestions? Thanks!

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [August 16, 2021, 8:33pm UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/9 "2021-08-16T20:33:24Z")

</div>

> [@nobiot](#):
>
> RET is re-mapped to a different command via various maps

… So the quickest way would be to check `C-h k RET` and what command `RET` is remapped to. I don’t like the behaviour of mouse click (hovering over the region does not give you any clue) but see the following.

```auto
(define-key org-roam-node-map [mouse-1] #'org-roam-node-visit)
(define-key org-roam-preview-map [mouse-1] #'org-roam-preview-visit)

```

@jbotz You might like to try these in Spacemacs – it might be the sequence of when the remapping happens in your init and loading of org-roam that causes your issue.

---

<div class="post-metadata">

**Author:** ![aschokker](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@aschokker](https://org-roam.discourse.group/u/aschokker)\
**Post date:** [August 16, 2021, 10:37pm UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/10 "2021-08-16T22:37:00Z")

</div>

This solved the issue; mouse click works now. Thank you nobiot!

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [August 17, 2021, 6:44am UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/11 "2021-08-17T06:44:02Z")

</div>

@aschokker Would you mind updating the section of the wiki? I believe you would not be the only one who benefits from it.

---

<div class="post-metadata">

**Author:** ![aschokker](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@aschokker](https://org-roam.discourse.group/u/aschokker)\
**Post date:** [August 17, 2021, 9:41am UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/12 "2021-08-17T09:41:08Z")

</div>

Sure, I’m not experienced in this matter, but I will give it a try!

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [August 17, 2021, 10:28am UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/13 "2021-08-17T10:28:49Z")

</div>

Thank you. You should be able to do it directly on the website on your browser….

---

<div class="post-metadata">

**Author:** ![jbotz](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/jbotz/32/616_2.png) [@jbotz](https://org-roam.discourse.group/u/jbotz)\
**Post date:** [August 17, 2021, 2:29pm UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/14 "2021-08-17T14:29:23Z")

</div>

The spacemacs issue is actually about more than just keymaps… the format of the org-roam backlink buffer is all screwed up, things appear out of sequence, the “Backlinks (n)” heading appears on the second-to-last line, etc. That might explain the missing keybindings since those depend on magit-section. I tried both a plain emacs and a fresh spacemacs install to confirm that it isn’t anything in my personal spacemacs config that’s screwing it up, and it isn’t, same thing happens in spacemacs out-of-the-box (well, at least on the devel branch of spacemacs, which is pre-configured for org-roam v2).

I haven’t yet figured out what’s going on because I still don’t understand the code in org-roam-mode.el (especially that magit-sections magic) but I’m getting there… 😉 Once I do, I’ll post here again.

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [August 17, 2021, 2:32pm UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/15 "2021-08-17T14:32:23Z")

</div>

> [@jbotz](#):
>
> the format of the org-roam backlink buffer is all screwed up, things appear out of sequence

There is a few threads on this very topic and a PR created. I can’t find links for you but a solution/workaround has been identified. I’d suggest to search. Probably “spacemacs” as a search term will help.

---

<div class="post-metadata">

**Author:** ![jbotz](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/jbotz/32/616_2.png) [@jbotz](https://org-roam.discourse.group/u/jbotz)\
**Post date:** [August 17, 2021, 4:11pm UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/16 "2021-08-17T16:11:19Z")

</div>

PR request for spacemacs or for org-roam? Didn’t find anything relevant in either…

---

<div class="post-metadata">

**Author:** ![doubleloop](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/doubleloop/32/99_2.png) [@doubleloop](https://org-roam.discourse.group/u/doubleloop)\
**Post date:** [August 17, 2021, 5:38pm UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/17 "2021-08-17T17:38:56Z")

</div>

Topic is here I believe - [Backlinks title not at top of buffer - #6 by swang251](https://org-roam.discourse.group/t/backlinks-title-not-at-top-of-buffer/1209/6) along with a link to a [workaround](https://github.com/swang251/org-roam/commit/3cc9ad89065dbf2f0e379edf83f70173e2ff72fe), although it doesn’t look like it has become a PR yet.

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [August 17, 2021, 6:27pm UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/18 "2021-08-17T18:27:15Z")

</div>

Oh yes that’s the one. Thank you. Thought it was turned to a PR; clearly I was mistaken 🙂

---

<div class="post-metadata">

**Author:** ![jbotz](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/jbotz/32/616_2.png) [@jbotz](https://org-roam.discourse.group/u/jbotz)\
**Post date:** [August 18, 2021, 12:10pm UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/19 "2021-08-18T12:10:21Z")

</div>

So in my case turning off global-page-break-lines-mode did resolve the org-roam buffer problems… both formatting and the keybindings now seem to work as intended. Spacemacs [issue#14969](https://github.com/syl20bnr/spacemacs/issues/14969) has more info.

---

<div class="post-metadata">

**Author:** ![broesmel](https://avatars.discourse-cdn.com/v4/letter/b/ce73a5/32.png) [@broesmel](https://org-roam.discourse.group/u/broesmel)\
**Post date:** [October 5, 2021, 6:44pm UTC](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947/20 "2021-10-05T18:44:04Z")

</div>

Im trying to get my backlinks to work but so far without success… (I cannot click them but opening them with RET works)

> [@nobiot](#):
>
> ```auto
> (define-key org-roam-node-map [mouse-1] #'org-roam-node-visit)
> (define-key org-roam-preview-map [mouse-1] #'org-roam-preview-visit)
> 
> ```

If I put this in my .emacs file and evaluate it, it works fine. If I close emacs and open it again I get the error “Symbol’s value as variable is void: org-roam-node-map” and clicking the backlinks is again not possible.

It drives me a bit crazy to have org-roam but not beeing able to browse the backlinks with the mouse. I tried disabling global-page-break-lines-mode with the command

(global-page-break-lines-mode 0)

but that completely crashes my emacs with error: “void-function global-page-break-lines-mod)”

Any help is appreciated!

[Next page](https://org-roam.discourse.group/t/backlinks-in-org-roam-buffer/1947.md?page=2)
