# Org Roam Buffer do not refresh automaticly

**URL:** <https://org-roam.discourse.group/t/org-roam-buffer-do-not-refresh-automaticly/2873>\
**Category:** Troubleshooting\
**Created:** [November 21, 2022, 8:49am UTC](https://org-roam.discourse.group/t/org-roam-buffer-do-not-refresh-automaticly/2873 "2022-11-21T08:49:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ianian](https://avatars.discourse-cdn.com/v4/letter/i/77aa72/32.png) [@ianian](https://org-roam.discourse.group/u/ianian)\
**Post date:** [November 21, 2022, 8:49am UTC](https://org-roam.discourse.group/t/org-roam-buffer-do-not-refresh-automaticly/2873/1 "2022-11-21T08:49:20Z")

</div>

vanila Emacs 27.1  
org-roam 2.2.2

If my cursor is in heading A, and then I run org-roam-buffer-toggle, the org-roam buffer appears as expected.  
Then if I move my cursor to heading B, the org-roam buffer still stays at the backlink of heading A.

Is it suppose to refresh the org-roam buffer automatically?

---

<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:** [November 21, 2022, 2:03pm UTC](https://org-roam.discourse.group/t/org-roam-buffer-do-not-refresh-automaticly/2873/2 "2022-11-21T14:03:12Z")

</div>

Yes.  
I suggest you check the variable ‘post-command-hook’ **within** your org-roam note buffer. You should see value `(org-roam-buffer--redisplay-h t)` is set; it should be set buffer-locally.

If not, the most likely cause is that you have not turned on `org-roam-db-autosync-mode`. You can see it done in the third line from the bottom in the configuration example in README.

> **[GitHub - org-roam/org-roam: Rudimentary Roam replica with Org-mode](https://github.com/org-roam/org-roam#configuration)**
>
> Rudimentary Roam replica with Org-mode. Contribute to org-roam/org-roam development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![ianian](https://avatars.discourse-cdn.com/v4/letter/i/77aa72/32.png) [@ianian](https://org-roam.discourse.group/u/ianian)\
**Post date:** [November 22, 2022, 1:43am UTC](https://org-roam.discourse.group/t/org-roam-buffer-do-not-refresh-automaticly/2873/3 "2022-11-22T01:43:14Z")

</div>

Thank you for your reply.

And I find out the cause by your diagnosis methods.

I open my [gtd.org](http://gtd.org) automatically when I open emacs. And it seems that because my org-roam start only after I run org-roam related commmands, so that the [gtd.org](http://gtd.org) start before the org-roam.

Then if I start org-roam first and start org file later. It will be ok.

Thank your help again.
