From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Guix search, colors and INSIDE_EMACS Date: Tue, 04 Feb 2020 20:18:39 +0100 Message-ID: <87pneuqhyo.fsf@elephly.net> References: <87blqeml4w.fsf@ambrevar.xyz> <87tv46qqlf.fsf@elephly.net> <87d0aul354.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:46909) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iz3ih-00035u-Jo for guix-devel@gnu.org; Tue, 04 Feb 2020 14:18:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iz3ig-0001Dw-Ij for guix-devel@gnu.org; Tue, 04 Feb 2020 14:18:47 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21132) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iz3ig-00015k-9K for guix-devel@gnu.org; Tue, 04 Feb 2020 14:18:46 -0500 In-reply-to: <87d0aul354.fsf@ambrevar.xyz> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: guix-devel@gnu.org Pierre Neidhardt writes: >>> - Rename it to GUIX_INSIDE_EMACS? >>> - Document the existence of INSIDE_EMACS. >> >> The variable is set by Emacs. As an Emacs feature we should not >> document it in Guix, nor should we rename it to GUIX_INSIDE_EMACS. > > Strange, I don't have this variable in my environment. I use Emacs 26.3 > and EXWM, I don't know if that makes a difference. The Emacs manual says: --8<---------------cut here---------------start------------->8--- @cindex @env{INSIDE_EMACS} environment variable Emacs sets the environment variable @env{INSIDE_EMACS} in the subshell to @samp{@var{version},comint}, where @var{version} is the Emacs version (e.g., @samp{24.1}). Programs can check this variable to determine whether they are running inside an Emacs subshell. --8<---------------cut here---------------end--------------->8--- I suppose you are not using a comint-derived mode for your shell then. >> For prettier colours in Emacs we already have things like >> guix-build-log-mode. > > This does not apply to all guix subcommands. True, but wouldn=E2=80=99t it be nicer to use font-lock with customizable f= aces instead of forcing a certain choice of colours on Emacs users? -- Ricardo