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: Explain a bit more on how to configure language server in Eglot's manual Date: Sun, 12 Mar 2023 19:52:20 +0000 Message-ID: <87ilf5px1n.fsf@gmail.com> References: 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="35262"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel To: Pedro Andres Aranda Gutierrez Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 12 20:51:32 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 1pbRjA-00091R-7b for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Mar 2023 20:51:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbRi8-0001mo-0Y; Sun, 12 Mar 2023 15:50:28 -0400 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 1pbRi5-0001mW-Gm for emacs-devel@gnu.org; Sun, 12 Mar 2023 15:50:25 -0400 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pbRi3-0003uV-LV for emacs-devel@gnu.org; Sun, 12 Mar 2023 15:50:25 -0400 Original-Received: by mail-wm1-x32c.google.com with SMTP id bg16-20020a05600c3c9000b003eb34e21bdfso9571509wmb.0 for ; Sun, 12 Mar 2023 12:50:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678650622; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=R+aMt1UHHRQdG9L2y/nf6Kod/2jVOQLdp/CqjX9bj8Q=; b=pg5s6bAp327FL9JHQWAa1wMZ+XFdEG1i5h+2aE2JmuX7Pxw6/8KHmTo/ByRqvL5bSJ 6n+BYREldR4BdKelGz9s2dhrM5HnmbnEadKFGxjmlKJJvAGZP3gZZJKQ8LLCFpvkSEPQ IbEqJRY9JsrXaK/CerxNKl2Ifbzu5Dqb9E5GsA9qiV8nDH/UjLulbUgqFa/0vQvHGX15 S8o1y5KIe55QuQJFKs5KWmDhDxQOYcyXQ9ydEebjjMK85CpGHKogkhRUu2R5ew40h0rA Tq32ty+4KMYNXXc2ybacSbz7x0GgS0HKI9A+lMgCZjH5vc4nRSjO5vnB1OpKK/2rSbhG CzGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678650622; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=R+aMt1UHHRQdG9L2y/nf6Kod/2jVOQLdp/CqjX9bj8Q=; b=25U4fFrG8XvHWGKLGI2zuQhPqFuWZ323BpSwEHwiM2aGTys8wPsDAaITUPqzklJs4H m4F0fH460XlmXAoJ4UZRltcOj5WSw6NIkTPglh7v15tpcetmLgmFqscDtYAuDGSJlQcJ IeiWMSI/ffHPH1yi+ZbdsSEyYOILqNd6XYj6FfSMn6Invh4VNW5UiSKfbMfj2EuDr9eE k0bnBttGzGpku9UhzOxme5V73GkO4jocWhbHdDqp6Y/F+jpjAKVNcc/t0pJes8SWifyz buOhXOEhinqGPXoa+lxXLXqBTLxOJgDUvssubom6aDyckf+tn6eQvROJFLORAlB4LmTr EUtg== X-Gm-Message-State: AO0yUKXUBZS0jqQINYoa9c0U2xax1/f1jjiR/DzrvUjS3h+1ChbGuMYF PSz3BhbGPkFd/DSuefEWs79nfuvVq+g= X-Google-Smtp-Source: AK7set+Ixxc7TLqf6FisYbffzC8wy28Q19ytFMyIWTnCUXlX1/XN1M7f0PJFciMljsCxxid6RgdURQ== X-Received: by 2002:a05:600c:a04:b0:3eb:3971:a2aa with SMTP id z4-20020a05600c0a0400b003eb3971a2aamr8894284wmp.25.1678650621571; Sun, 12 Mar 2023 12:50:21 -0700 (PDT) Original-Received: from krug (87-196-72-142.net.novis.pt. [87.196.72.142]) by smtp.gmail.com with ESMTPSA id l7-20020a05600c1d0700b003e209186c07sm7540157wms.19.2023.03.12.12.50.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 12:50:21 -0700 (PDT) In-Reply-To: (Pedro Andres Aranda Gutierrez's message of "Sun, 12 Mar 2023 13:09:24 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=joaotavora@gmail.com; helo=mail-wm1-x32c.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:304379 Archived-At: Pedro Andres Aranda Gutierrez writes: > Hi Joao, > > I've been looking at the write-eglot-manual-for-advanced-server-config > branch in savannah and it looks great. The documentation update is already commited to emacs-29. > My .2 cents to it is that would be great if you included something in > the line of > > ----- cut here ------- > You can create a basic eglot configuration to use (by default) in most > of your projects in your Emacs initialisation like below: > > (setq-default eglot-workspace-configuration > '(:pylsp > (:configurationSources ["pycodestyle"] Here, you're using eglot-workspace-configuration, a mechanism intended for project-specific configuration (5.2 Project-specific configuration), to effectively do user-specific configuration, described in (5.1 User-specific configuration). This indeed works, I've fixed the manual which previously said that setting the variable globally "doesn't make sense". It can be useful, if you know what you're doing. But I don't know if we should be recommending this over the use of eglot-server-program + :initializationOptions as described in section 5.1 User-specific configuration. Will see. > In addition to this, it would also be nice to document a 'canonical' > way to disable/customise the mouse code actions. If I use something, > it's just the import organiser in Python... Disabling it, moving it to > another binding would be great. This is an unrelated issue which needs thinking about. Make a bug report and describe a reproduction for the problem you've been having. Jo=C3=A3o