From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: [SPAM UNSURE] Explain a bit more on how to configure language server in Eglot's manual Date: Mon, 6 Mar 2023 00:16:49 +0000 Message-ID: References: <86sfeisu49.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26000"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuan Fu , Emacs developers To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 06 01:17:39 2023 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 1pYyXq-0006f8-U2 for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Mar 2023 01:17:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYyXJ-0007mP-CU; Sun, 05 Mar 2023 19:17:05 -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 1pYyXH-0007m9-Gz for emacs-devel@gnu.org; Sun, 05 Mar 2023 19:17:03 -0500 Original-Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYyXG-0002tm-0h for emacs-devel@gnu.org; Sun, 05 Mar 2023 19:17:03 -0500 Original-Received: by mail-oi1-x229.google.com with SMTP id bh20so5835250oib.9 for ; Sun, 05 Mar 2023 16:17:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678061820; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Lz7FhgDZmO6O0pTIWyYWLAJCNTA9nweBIbkeObEkN/I=; b=Dd9MDqGnP+ZtEZLFmAXVmqBu41EjK1FiSz/7NTgansekJ7+eNcu5DAm3jRdYgMowPB +GmA/1YZR5BGRxUNuXJ0Bs4kEH7K9TCqzixMYpYxBGmw2UMbc604Co/gE6Y5F0PqTqfD UrHl54eydoNwMJWIzaCgFtvMm/urSnK7g/K7MEK28EiyZGcCiYT1cRdwEDRMI8jhuqvs ECt82TISstM3Apio3TMPO+a9VakYdIJ010KQy3fCGUNf96Pp+Rgn1XA4g3YcmQUtZMB2 f3AX92CtNQmSOYjPyVmrV60HLne9STy9BmZjZbQF2P5tr7/RX+3ly48WW/wvr7/HdEFo h26g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678061820; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Lz7FhgDZmO6O0pTIWyYWLAJCNTA9nweBIbkeObEkN/I=; b=Ncyql5o7shtAit30HkuytPGCROFzNE27ZNP4DRZrvXAzP0mQPhwbW9LiOpnxDlwjok uC56VN75B9kVsbLH+FV3YnfyeUCUOutjB4BiA6qNc+sEAEbSCUCqDGwjeTU38rO8f07o h2Uk6hkhrXEusfaNVtEj9um+g225wigwulHAYeoU6Vi4JInTWQqfLu6BRKAkGiaoueiV XLTJvNw52ej7e1wzy9lnNuSWLOYLqOGorPa9WwoG1vMiNqRZF66yxztN3o5LnaN7jOP+ 6g5eqmE3rnyOw0w2dJY4TFrJD9xjxygLVO7qIlrhlagoizuQ3of/cLaEGK/p5V2R6psK tSIA== X-Gm-Message-State: AO0yUKUFPye0QPGgymM6/GNmJHlhOnQvuMZSdINJjW5Z6oB/xCz806sj t2UGiBZ2eiuHT3tbsMiOQ8dbNl4E/RfYhb1VPt4= X-Google-Smtp-Source: AK7set+Qa5jeRoZ3ymPhOrU+9RtOfAf3TH3M5fMbrhVO3EyBWx782ZYbhOIlf4iKz7T6OO/eHlcdGI/4h80F0rlHHuo= X-Received: by 2002:aca:1a0d:0:b0:36e:f6f5:66a2 with SMTP id a13-20020aca1a0d000000b0036ef6f566a2mr2831250oia.8.1678061820689; Sun, 05 Mar 2023 16:17:00 -0800 (PST) In-Reply-To: <86sfeisu49.fsf@stephe-leake.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::229; envelope-from=joaotavora@gmail.com; helo=mail-oi1-x229.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:304012 Archived-At: Yuan, please show the patch to Eglot's manual and let's work from there. I'm also OK with adding more examples, and work on simplifying the per-project configuration workflow, maybe by somehow making it easier to translate that dotted path notation into the nested JSON object that the server is ultimately looking for. By the way, it's per-project server configuration that you're presumably after when looking at eglot-workspace-configuration, NOT per-user. A per-user thing would be :initializationOptions or custom command-line arguments in eglot-server-programs, or even a special ~/.foorc file that the server reads (rust analyzer doesn't seem to have one, though, but clangd does). The reason I bring up the distinction is that, in many cases (but not all of course), the user is actually interested in that, but strays from the objective and ends up the same configuration over all her different projects. If this distinction is not clear in the manual, either, it should be made so. Reading the docs, rust-analyzer allows per-user configuration via :initializationOptions. The syntax and supported options are usually the same but the difficulties and confusion associated with ~/.dir-locals.el are not there. Jo=C3=A3o