[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making `eglot-server-programs' a custom variable?
From: |
Philip Kaludercic |
Subject: |
Re: Making `eglot-server-programs' a custom variable? |
Date: |
Wed, 09 Nov 2022 20:49:07 +0000 |
Arash Esbati <arash@gnu.org> writes:
> Hi all,
>
> I tried eglot only once and I had to add a lsp-server to
> `eglot-server-programs'. From this experience, is there a plan to make
> this a custom variable? If not, I suggest to change the example in
> eglot manual from
>
> (add-to-list 'eglot-server-programs
> '(foo-mode . ("fools" "--stdio")))
>
> to
>
> (with-eval-after-load 'eglot
> (add-to-list 'eglot-server-programs
> '(foo-mode . ("fools" "--stdio"))))
>
> for those who will copy&paste this into their init files and then wonder
> why it throws an error.
How would making `eglot-server-programs' help in that respect? If the
`defvar' were just to be replaced by a `defcustom', the result would
still just be a variable, that couldn't be `add-to-list'ed before it is
loaded.
>From what I see `add-to-list' has no special handling of user options.
> Best, Arash
I've CC'ed João.
- Making `eglot-server-programs' a custom variable?, Arash Esbati, 2022/11/09
- Re: Making `eglot-server-programs' a custom variable?,
Philip Kaludercic <=
- Re: Making `eglot-server-programs' a custom variable?, Arash Esbati, 2022/11/09
- Re: Making `eglot-server-programs' a custom variable?, Philip Kaludercic, 2022/11/10
- Re: Making `eglot-server-programs' a custom variable?, Stefan Monnier, 2022/11/10
- Re: Making `eglot-server-programs' a custom variable?, Philip Kaludercic, 2022/11/10
- Re: Making `eglot-server-programs' a custom variable?, Stefan Monnier, 2022/11/10
- Re: Making `eglot-server-programs' a custom variable?, Philip Kaludercic, 2022/11/10
- Re: Making `eglot-server-programs' a custom variable?, Jim Porter, 2022/11/11
- Re: Making `eglot-server-programs' a custom variable?, chad, 2022/11/12
- Re: Making `eglot-server-programs' a custom variable?, Philip Kaludercic, 2022/11/12
- Re: Making `eglot-server-programs' a custom variable?, Philip Kaludercic, 2022/11/12