[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guix search, colors and INSIDE_EMACS

From: Pierre Neidhardt
Subject: Re: Guix search, colors and INSIDE_EMACS
Date: Tue, 04 Feb 2020 17:37:43 +0100

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’t this mess with font lock in Emacs modes such as M-x shell?  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’t it considered best practise to set PAGER=cat when using Emacs as a
> shell?  That’s what I do to show man pages (when I’m not using M-x
> woman) or to have “git log” do the right thing.

--8<---------------cut here---------------start------------->8---
env PAGER=cat guix search emacs
--8<---------------cut here---------------end--------------->8---


--8<---------------cut here---------------start------------->8---
export PAGER=cat
guix search emacs
--8<---------------cut here---------------end--------------->8---

still displays the hint for me in M-x shell or Eshell.

Any idea?

Pierre Neidhardt

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]