From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.devel Subject: Making `eglot-server-programs' a custom variable? Date: Wed, 09 Nov 2022 21:25:53 +0100 Message-ID: <86fservpri.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25597"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 09 21:27:48 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 1osrfn-0006Vx-PA for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Nov 2022 21:27:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osreu-0004uT-3l; Wed, 09 Nov 2022 15:26:52 -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 1osres-0004uD-Ef for emacs-devel@gnu.org; Wed, 09 Nov 2022 15:26:51 -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 1osres-0004xJ-6J for emacs-devel@gnu.org; Wed, 09 Nov 2022 15:26:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=7feJwQBoTmWmvKBIKOdEjEwiV2UaoXt3oqhf4d2Zmns=; b=quVqDZDv0pdJp6 JIDoZvJ/gyESGJyPuGGVpJ11i1psRGp1yKoFQ2CO0KnN/s0a467H4Fb1v5h5ReeCront/TIgFxKDb +oC/A4ud67kHDahftXs78sFEPQ1Yb6bVU3r5isxAgsAR5vFOtiLRxNdaMkk2kcqzZmmqYyU3ztZ+C E9acTt3oE6+z7cVN40mtLfYhuSPaLsZgUJkbPHiIpLsg1BS3SvvNU3q/Iyuxu9x8QKnzru7eCSkmQ hYsv9IOI++4S9/rI8eRsk+RbqGAInesKBIOuZCmphTvt5D20wxp0sAVY0ypx9WwOi1Uf6GvbtRTmJ +gW8xWzGCcCBC0eDPrbg==; Original-Received: from p5b326552.dip0.t-ipconnect.de ([91.50.101.82] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osreq-0003iX-RU for emacs-devel@gnu.org; Wed, 09 Nov 2022 15:26:49 -0500 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:299429 Archived-At: 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. Best, Arash