From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Brian Cully via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: Making `eglot-server-programs' a custom variable? Date: Fri, 11 Nov 2022 21:34:59 -0500 Message-ID: <874jv4hpd8.fsf@ditto.jhoto.spork.org> References: <86fservpri.fsf@gnu.org> <831qqbtixr.fsf@gnu.org> <86edubdv64.fsf@gnu.org> <83iljnrw3t.fsf@gnu.org> <83fseqrb0r.fsf@gnu.org> <87iljm8ovc.fsf@gmail.com> Reply-To: Brian Cully 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="27342"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Yuri Khan , =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 12 03:36:49 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 1otgO0-0006yw-H6 for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Nov 2022 03:36:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otgNE-00052W-6O; Fri, 11 Nov 2022 21:36:00 -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 1otgND-00052O-4q for emacs-devel@gnu.org; Fri, 11 Nov 2022 21:35:59 -0500 Original-Received: from coleridge.kublai.com ([166.84.7.167] helo=mail.spork.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otgNB-0005KL-MS; Fri, 11 Nov 2022 21:35:58 -0500 Original-Received: from ditto (ool-18b8e9e7.dyn.optonline.net [24.184.233.231]) by mail.spork.org (Postfix) with ESMTPSA id CC702BF26; Fri, 11 Nov 2022 21:35:01 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=spork.org; s=dkim; t=1668220504; bh=0S2rXl86ueV4iIvMsm6aTjw2OdNJ2bZud79D/xgZg5k=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=PMp4ZVTlX/qKvPDarqm2ubDNkp41L/69VCEX9rGhgklz71lZRiBQFYHEuDoEYeP8s Sb+FGE06WTVcb1n1LiXkrjNbJlsfvS905HP1TM2E2mLbNm56lyp7xXGQAR8Sf0O6/F gQN/mpgOnUeTk9IgnfKLQUmWvRzmgBjA9L9GRR98= In-Reply-To: Received-SPF: pass client-ip=166.84.7.167; envelope-from=bjc@spork.org; helo=mail.spork.org 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, 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:299593 Archived-At: Yuri Khan writes: > I might be using Eglot unconventionally, but this is how I do it: > > There are multiple projects, with their specific compiler versions and > library dependencies. If I installed all of that directly on my > machine, I=E2=80=99d have version hell. Therefore, for each project, I bu= ild a > docker image with all the external dependencies packed in. I mount my > source tree into a container and invoke the build in it. Emacs, on the > other hand, runs on the host machine. Thus, my compile-command is > defined in .dir-locals.el and starts with =E2=80=9Cdocker run --rm=E2=80= =9D. This is also how I use eglot. I only do my coding inside of explicitly versioned and reproducible containers. FWIW, eglot natively supports Tramp, meaning it will spawn the LSP on the remote, as long as you are also accessing those files remotely. There's no need to change the value of =E2=80=98eglot-server-prog= rams=E2=80=99 in this case. -bjc