From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Guix search, colors and INSIDE_EMACS Date: Tue, 04 Feb 2020 17:37:43 +0100 Message-ID: <87d0aul354.fsf@ambrevar.xyz> References: <87blqeml4w.fsf@ambrevar.xyz> <87tv46qqlf.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58538) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iz1Cw-0006wE-3e for guix-devel@gnu.org; Tue, 04 Feb 2020 11:37:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iz1Cu-0005JB-BK for guix-devel@gnu.org; Tue, 04 Feb 2020 11:37:49 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:16925) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iz1Cu-00055R-44 for guix-devel@gnu.org; Tue, 04 Feb 2020 11:37:48 -0500 In-Reply-To: <87tv46qqlf.fsf@elephly.net> 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: Ricardo Wurmus Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ricardo, > Hi Pierre, > >> - 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. >> - Leave colors on when inside Emacs. > > Wouldn=E2=80=99t this mess with font lock in Emacs modes such as M-x shel= l? My > colour theme has no place for a garish green :) In my experience, colors worked perfectly before the INSIDE_EMACS switch was introduced. I don't understand what this change tried to fix. Maybe one fix broke something else. > For prettier colours in Emacs we already have things like > guix-build-log-mode. This does not apply to all guix subcommands. >> - Disable the pager hint and display all research result when inside >> Emacs. > > Isn=E2=80=99t it considered best practise to set PAGER=3Dcat when using E= macs as a > shell? That=E2=80=99s what I do to show man pages (when I=E2=80=99m not = using M-x > woman) or to have =E2=80=9Cgit log=E2=80=9D do the right thing. =2D-8<---------------cut here---------------start------------->8--- env PAGER=3Dcat guix search emacs =2D-8<---------------cut here---------------end--------------->8--- or =2D-8<---------------cut here---------------start------------->8--- export PAGER=3Dcat guix search emacs =2D-8<---------------cut here---------------end--------------->8--- still displays the hint for me in M-x shell or Eshell. Any idea? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl45ndcACgkQm9z0l6S7 zH+zDAf/bhG2vKqT6rzpDC8iDhBb8kXujyveB/Cfz7wmbeHNjOlCdGSa6oHRGfqI nce/Og3SmGTztpzNrbtf8VE6UXl7jYWPbnMXBEX9mUtNQGt7dUXjLZjbQ6cys84h zU7QcGxpwPhtUESkZkEMclltHu4yzFhQHIGYlBcToROEfnsmmq+K3fqAI5h9oyi5 Oayh20SAb/VghRdT/fACaayp+/YS1NnniQBEMJxBt5GZ3lOwdJ1gu4Nsfves/h99 u6G1GFxiPgggxUETg/hS0wFg2mT5/hlebvmMumztayTYMn5QctTkxNKMAxbl/lY5 +vC1j6BIVeC17f9T3PgH/StBTinS9Q== =fDUh -----END PGP SIGNATURE----- --=-=-=--