# Org-roam-company

**URL:** <https://org-roam.discourse.group/t/org-roam-company/1011>\
**Category:** Troubleshooting\
**Created:** [November 29, 2020, 4:34pm UTC](https://org-roam.discourse.group/t/org-roam-company/1011 "2020-11-29T16:34:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bepolymathe](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/bepolymathe/32/688_2.png) [@bepolymathe](https://org-roam.discourse.group/u/bepolymathe)\
**Post date:** [November 29, 2020, 4:34pm UTC](https://org-roam.discourse.group/t/org-roam-company/1011/1 "2020-11-29T16:34:37Z")

</div>

Hi,

I don’t understand why i have a problem with completion with company in Doom emacs. My config:

```
   (use-package! company-org-roam) 

    (use-package! company-posframe
      :hook (company-mode . company-posframe-mode))

    (after! company
      (map! "M-/" #'company-complete))

```

And i also have

`(setq company-idle-delay nil)`

Any idea ?

---

<div class="post-metadata">

**Author:** ![bepolymathe](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/bepolymathe/32/688_2.png) [@bepolymathe](https://org-roam.discourse.group/u/bepolymathe)\
**Post date:** [November 30, 2020, 5:25pm UTC](https://org-roam.discourse.group/t/org-roam-company/1011/2 "2020-11-30T17:25:51Z")

</div>

Really strange 🤔

---

<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:** [December 1, 2020, 8:07am UTC](https://org-roam.discourse.group/t/org-roam-company/1011/3 "2020-12-01T08:07:35Z")

</div>

I believe `company-org-roam` was deprecated at around v1.2.1 in favour of `company-capf`.  
I wrote a quick [configuration guide](https://org-roam.discourse.group/t/how-to-to-get-title-of-the-target-note-working-with-inline-autocomplete-in-org-roam/782) before; it may not be 100% current, but you might be able to take basic ideas away.

Where I am not confident is in the latest version, the support for “fuzzy link” (`[[file-name-as-alink]]`) may not be present. `[[roam:file-name-as-alink]]` should work… That is, you might need to type “[[roam:” to get Company to start completing.

---

<div class="post-metadata">

**Author:** ![bepolymathe](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/bepolymathe/32/688_2.png) [@bepolymathe](https://org-roam.discourse.group/u/bepolymathe)\
**Post date:** [December 1, 2020, 8:17am UTC](https://org-roam.discourse.group/t/org-roam-company/1011/4 "2020-12-01T08:17:31Z")

</div>

Hi @nobiot

Thanks for reply. I’ll check this. At this time, the error is

 ![image](https://global.discourse-cdn.com/free1/uploads/orgroam/original/1X/e0072773cf5e987a972b3398b5c9aaaa48b6abc6.png)

---

<div class="post-metadata">

**Author:** ![bepolymathe](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/bepolymathe/32/688_2.png) [@bepolymathe](https://org-roam.discourse.group/u/bepolymathe)\
**Post date:** [December 1, 2020, 8:49am UTC](https://org-roam.discourse.group/t/org-roam-company/1011/5 "2020-12-01T08:49:42Z")

</div>

Hi,

It works with config

```
(use-package! company-org-roam)
(use-package! company-posframe
  :hook (company-mode . company-posframe-mode))

(setq company-minimum-prefix-length 2)
(setq company-idle-delay 0.25)
(setq company-backends '(company-capf))
(setq completion-ignore-case t)

```

The only thing I miss now is being able to “jump” out of the link brackets so I can continue writing without going back to the normal evil mode.

---

<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:** [December 1, 2020, 8:57am UTC](https://org-roam.discourse.group/t/org-roam-company/1011/6 "2020-12-01T08:57:53Z")

</div>

+1 @jethro

Last time I talked about that with Jethro, his intention was that the cursor remains inside the bracket so that you can choose to continue with a “\*” to look for a headline.

I believe you would need to change the code to alter this behavior to skip to the outside the bracket (I probably did some POC code and shared it somewhere, probably in this forum…)

---

<div class="post-metadata">

**Author:** ![bepolymathe](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/bepolymathe/32/688_2.png) [@bepolymathe](https://org-roam.discourse.group/u/bepolymathe)\
**Post date:** [December 1, 2020, 9:03am UTC](https://org-roam.discourse.group/t/org-roam-company/1011/7 "2020-12-01T09:03:22Z")

</div>

> [@nobiot](#):
>
> his intention was that the cursor remains inside the bracket so that you can choose to continue with a “\*” to look for a headline.

Oh yes, I hadn’t thought of that. It makes sense…

> [@nobiot](#):
>
> I believe you would need to change the code to alter this behavior to skip to the outside the bracket (I probably did some POC code and shared it somewhere, probably in this forum…)

Okay, I’ll take a look. Thank you.
