From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Making `eglot-server-programs' a custom variable? Date: Thu, 10 Nov 2022 08:36:16 +0200 Message-ID: <831qqbtixr.fsf@gnu.org> References: <86fservpri.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7999"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Arash Esbati Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 10 07:36:47 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ot1B9-0001st-IW for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Nov 2022 07:36:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ot1Al-0005A3-Hb; Thu, 10 Nov 2022 01:36:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ot1Ak-00059v-02 for emacs-devel@gnu.org; Thu, 10 Nov 2022 01:36:22 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ot1Aj-0000e0-By for emacs-devel@gnu.org; Thu, 10 Nov 2022 01:36:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=j/CnGryJP0IetqtJDEK1zIjs8iCfMWaSr2Y0iJKr3uc=; b=JI4jO8zNGs5X Sm1GoLUdrSkAWE9Fdf14lnG3UqWGsQSBXXO/HAXtbetKhAKiiiV0c6yiJoAfFEZY0NCPy2GJzSzLR id3zqwf8lftCPFpSYJfUR5SvQgdzoaJXC6aUQCtrV533XiKCawJ2BwP7ngzZuldDStIJzbxGssYk1 lFUtMBMrfSYYsNzF+SF+SmDwA0YaYtDab3nb0krjZJdh3xSkiKxjiAHrRNwEeY5n5Ih4xAlKbfjjm 8natt0RNZFdBFIZCNCpTvhm4CXfyZsk3o8G5MndBbc02x22Zdz7jOShZwIaeOG8pTWyyiX7gRz2aC XS4KMd+pDngo5Rsk+vszqQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ot1Ae-0004ya-2B; Thu, 10 Nov 2022 01:36:17 -0500 In-Reply-To: <86fservpri.fsf@gnu.org> (message from Arash Esbati on Wed, 09 Nov 2022 21:25:53 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299459 Archived-At: > From: Arash Esbati > Date: Wed, 09 Nov 2022 21:25:53 +0100 > > 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. The intent is for this variable to include enough servers to make it unnecessary to add to the list. With that in mind, I wouldn't complicate the manual by making sure this is copy/paste-able. Is the LSP server you needed to add still missing from the database currently on master? If so, please suggest the addition(s).