# Emacs julia-mode doesn't know packages?

**URL:** <https://discourse.julialang.org/t/emacs-julia-mode-doesnt-know-packages/135176>\
**Category:** Tooling\
**Created:** [January 21, 2026, 4:38am UTC](https://discourse.julialang.org/t/emacs-julia-mode-doesnt-know-packages/135176 "2026-01-21T04:38:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryofurue](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ryofurue/32/24531_2.png) [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Post date:** [January 21, 2026, 4:38am UTC](https://discourse.julialang.org/t/emacs-julia-mode-doesnt-know-packages/135176/1 "2026-01-21T04:38:20Z")

</div>

The julia-mode of emacs very often flags package names as “Missing Reference”. A simple

```julia-auto
using StrFormat

```

triggers the warning. I may be hallucinating, but I seem to remember that that wasn’t the case not so long ago . . .

So, how do you tell the language server (or something) to refer to the packages that are already installed to the julia REPL ?

I have these lines in my `~/.emacs.d/init.el`

```julia-auto
(use-package julia-mode
  :ensure t
  :config
  (add-hook 'julia-mode-hook 'eglot-jl-init)
  (add-hook 'julia-mode-hook 'eglot-ensure)
  (setq julia-indent-offset 2)
  )

(use-package eglot-jl
  :ensure t
  :config
  (setq eglot-sync-connect 1
        eglot-connect-timeout 120))

(use-package julia-repl
  :ensure t
)

```

and

```julia-auto
(use-package company
  :ensure t
  :config
  (global-company-mode 1)
  ;; Require more characters before completion triggers
  (setq company-minimum-prefix-length 3)
  ;; Never automatically accept a completion
  ;; just because completion was active.
  (setq company-require-match 'never)
  )

```

if it has something to do with julia-mode . . .
