# You should try jetls, it is awesome!

**URL:** <https://discourse.julialang.org/t/you-should-try-jetls-it-is-awesome/135844>\
**Category:** Tooling\
**Tags:** emacs, jetls\
**Created:** [February 25, 2026, 8:03pm UTC](https://discourse.julialang.org/t/you-should-try-jetls-it-is-awesome/135844 "2026-02-25T20:03:48Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![mstewart](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@mstewart](https://discourse.julialang.org/u/mstewart)\
**Post date:** [March 18, 2026, 2:57pm UTC](https://discourse.julialang.org/t/you-should-try-jetls-it-is-awesome/135844/21 "2026-03-18T14:57:03Z")

</div>

You may already know more than I do, since I don’t know much, but I looked at some documentation for eglot and it seemed to me that you would set the directory-local variable`eglot-workspace-configuration` in a file `.dir-locals.el` as described [here](https://www.gnu.org/software/emacs/manual/html_node/eglot/Project_002dspecific-configuration.html). I didn’t try it since it wasn’t clear to me what advantage this has over putting the configuration in `.JETLSConfig.toml`. Maybe I’m missing something. Is there some advantage that you know of?

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [March 18, 2026, 3:10pm UTC](https://discourse.julialang.org/t/you-should-try-jetls-it-is-awesome/135844/22 "2026-03-18T15:10:46Z")

</div>

> [@mstewart](#):
>
> Is there some advantage

I want the configuration to be global, not specific to a directory.

> [@mstewart](#):
>
> set the directory-local variable`eglot-workspace-configuration` in a file `.dir-locals.el`

I think I need the [user-specific configuration](https://www.gnu.org/software/emacs/manual/html_node/eglot/User_002dspecific-configuration.html), which apparently requires [translating JSON to elisp](https://www.gnu.org/software/emacs/manual/html_node/eglot/JSONRPC-objects-in-Elisp.html). I am just not sure where the `:jetls` and the plist goes, that’s all.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [March 18, 2026, 4:24pm UTC](https://discourse.julialang.org/t/you-should-try-jetls-it-is-awesome/135844/23 "2026-03-18T16:24:31Z")

</div>

> [@linwaytin](#):
>
> Do you mean the `JETLS` can work independently with the active environment?

Yes, JETLS is a Julia server app that works in its own environment.

---

<div class="post-metadata">

**Author:** ![linwaytin](https://avatars.discourse-cdn.com/v4/letter/l/898d66/32.png) [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Post date:** [March 18, 2026, 4:31pm UTC](https://discourse.julialang.org/t/you-should-try-jetls-it-is-awesome/135844/24 "2026-03-18T16:31:53Z")

</div>

Awesome. I didn’t realize this point. I will give it a try!

---

<div class="post-metadata">

**Author:** ![tecosaur](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tecosaur/32/23206_2.png) [@tecosaur](https://discourse.julialang.org/u/tecosaur)\
**Post date:** [March 18, 2026, 4:40pm UTC](https://discourse.julialang.org/t/you-should-try-jetls-it-is-awesome/135844/25 "2026-03-18T16:40:21Z")

</div>

> [@Tamas\_Papp](#):
>
> I am not asking about _setup_, but _configuration_

I think you’ll want something like this:

```julia
(add-hook 'julia-mode-hook #'eglot-ensure)
(with-eval-after-load 'eglot
  (let ((jetls-config
         '(:code_lens (:references t) ; I would like to get this to work
           :formatter (:custom (:executable "runic-fork")))))
  (add-to-list 'eglot-server-programs
               `(((julia-mode :language-id "julia" :initializationOptions ,jetls-config)
                  (julia-ts-mode :language-id "julia" :initializationOptions ,jetls-config))
                 "jetls"
                 "serve"
                 "--socket"
                 :autoport))))

```

---

<div class="post-metadata">

**Author:** ![mstewart](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@mstewart](https://discourse.julialang.org/u/mstewart)\
**Post date:** [March 20, 2026, 10:47am UTC](https://discourse.julialang.org/t/you-should-try-jetls-it-is-awesome/135844/26 "2026-03-20T10:47:43Z")

</div>

I had been thinking I’d be happy with a local per-project configuration. But I can see that having a default might be nice.

I did play around with trying to this with `setq-default` as in the user-specific configuration link. JETLS certainly sees it, but I seem to have completely failed at getting the plist right. JETLS gave errors with everything I tried. So I’m also stumped on this.

---

<div class="post-metadata">

**Author:** ![linwaytin](https://avatars.discourse-cdn.com/v4/letter/l/898d66/32.png) [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Post date:** [March 26, 2026, 10:05pm UTC](https://discourse.julialang.org/t/you-should-try-jetls-it-is-awesome/135844/27 "2026-03-26T22:05:34Z")

</div>

I have a question. I installed `jetls` with Julia 1.12 environment, as required. However, my project is developed with 1.10 with many packages installed in this environment. Is it possible for `jetls` to handle this situation directly? Or I have to install all the packages in the 1.12 environment?

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [March 27, 2026, 4:25am UTC](https://discourse.julialang.org/t/you-should-try-jetls-it-is-awesome/135844/28 "2026-03-27T04:25:31Z")

</div>

> [@linwaytin](#):
>
> Or I have to install all the packages in the 1.12 environment?

See [You should try jetls, it is awesome! - #14 by ufechner7](https://discourse.julialang.org/t/you-should-try-jetls-it-is-awesome/135844/14)

---

<div class="post-metadata">

**Author:** ![linwaytin](https://avatars.discourse-cdn.com/v4/letter/l/898d66/32.png) [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Post date:** [March 27, 2026, 10:50am UTC](https://discourse.julialang.org/t/you-should-try-jetls-it-is-awesome/135844/29 "2026-03-27T10:50:44Z")

</div>

Thank you, but does this not install all the packages in the `1.12` env?

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [March 27, 2026, 2:16pm UTC](https://discourse.julialang.org/t/you-should-try-jetls-it-is-awesome/135844/30 "2026-03-27T14:16:25Z")

</div>

Well, not in the global environment, but in the local environment of your project. What is your problem with it? Are you short of disk space?

---

<div class="post-metadata">

**Author:** ![linwaytin](https://avatars.discourse-cdn.com/v4/letter/l/898d66/32.png) [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Post date:** [March 27, 2026, 6:18pm UTC](https://discourse.julialang.org/t/you-should-try-jetls-it-is-awesome/135844/31 "2026-03-27T18:18:15Z")

</div>

Yeah, I am worried about the disk space, but not a big issue. Thank you!

---

<div class="post-metadata">

**Author:** ![aviatesk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aviatesk/32/7610_2.png) [@aviatesk](https://discourse.julialang.org/u/aviatesk)\
**Post date:** [March 28, 2026, 11:31pm UTC](https://discourse.julialang.org/t/you-should-try-jetls-it-is-awesome/135844/32 "2026-03-28T23:31:28Z")

</div>

> [@Tamas\_Papp](#):
>
> I am not asking about _setup_, but _configuration_

Here is the documentation: [JETLS configuration · JETLS.jl](https://aviatesk.github.io/JETLS.jl/release/configuration/#How-to-configure-JETLS).

What @tecosaur explained is the way Emacs eglot sends configuration to the server through an LSP request called `workspace/configuration`. This corresponds to what called as “Method 2” in the documentation.

On the other hand, placing `.JETLSConfig.toml` in the project root is a method that JETLS provides on its own (“Method 1”), separate from LSP. So that one should work editor-agnostically, regardless of how Emacs eglot implements `workspace/configuration`.

---

<div class="post-metadata">

**Author:** ![aviatesk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aviatesk/32/7610_2.png) [@aviatesk](https://discourse.julialang.org/u/aviatesk)\
**Post date:** [March 28, 2026, 11:32pm UTC](https://discourse.julialang.org/t/you-should-try-jetls-it-is-awesome/135844/33 "2026-03-28T23:32:44Z")

</div>

> [@mstewart](#):
>
> JETLS gave errors with everything I tried. So I’m also stumped on this.

Please file an issue if you still have a reproducer for it!

[Previous page](https://discourse.julialang.org/t/you-should-try-jetls-it-is-awesome/135844.md?page=1)
