From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Visher Newsgroups: gmane.emacs.help Subject: Re: terminal emacs configuration take 2 Date: Thu, 12 Aug 2021 08:54:52 -0400 Message-ID: References: <85k0ks3ugx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20076"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs To: Sivaram Neelakantan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 12 14:56:08 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1mEAFj-00051z-Ul for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 12 Aug 2021 14:56:07 +0200 Original-Received: from localhost ([::1]:36574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEAFi-0001Zs-Af for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 12 Aug 2021 08:56:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEAFB-0001YX-N1 for help-gnu-emacs@gnu.org; Thu, 12 Aug 2021 08:55:33 -0400 Original-Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:42854) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEAF9-0002DP-Fe for help-gnu-emacs@gnu.org; Thu, 12 Aug 2021 08:55:33 -0400 Original-Received: by mail-wr1-x432.google.com with SMTP id q11so8170989wrr.9 for ; Thu, 12 Aug 2021 05:55:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RB3LgFz69n6+2jMujsuco5cVrHFCc44M2ORecx0UWL4=; b=lWMIw2I9mg5ofvAD5p9+tsNZMvZ/r2LbqZMj52zh5aNujp6jAOJx7JAbhY/kiezO0T CejXr9hDAAZG5ZhNyLudIpzbxbbLL1DNC78SNGZFZO0qDFrUWyYZXUnNmJYKXSns37eL CwUxP8DsUdK1flKqTY9g4rt5HrDPtEa4elUyaNcE3xUHA3PkITWQgLau6WbDqwjSeKHT xOU01wYwqdZTzfK1QXhC9hU4urXmMkNqE2QE33ZKJtioHYhfcmRqcJF/Gk6gjaBEE2QA +203RP3lBfOR3S1ypanU+48euFVIltZfcJwEgurTIhHQKucrGou9TjOD2Z7oauxlixsO dpdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RB3LgFz69n6+2jMujsuco5cVrHFCc44M2ORecx0UWL4=; b=i98iJVrFRuLgCWBFefNK1P5hLKaVi5X85j00H/s+brrXnMi9U+YMDeVi+ySt0J+XE8 jMuTTQWU/Gz3JrhnA/ttRpubMlfFuj9H6LbmVLOWYraA/4YrJ/oo5F61+UU4e4dPcflj UChcADF3fTLGzCeJ9ay73B5IduIGTQ+BEFX6auDi+RKqIz8cvYSN2BQajsWkyuGhUrmU rjMNA3ytjnp3YgtHScLDqor9gwcJW+855Vb3872DIX+Kw3XGK0wWkb8TWvNGpzCxCoMT 4QZZzNYJLIrt9bS+asQXUOZPjVyYXARQMfXaC/k2Ddg3xwfLJAFg8vMzRWPtjL3uzbJR Pq1g== X-Gm-Message-State: AOAM5302zpAcLm2VUv05CUpQmwVRy3gAknXlMtsSgF8JA7CND9AwsGMo S3gTHYv+5nI4Yctf7y8e6HQgOELjg8rlusyXuJ4= X-Google-Smtp-Source: ABdhPJxdeErOF+At3G2nXvqC/UcVZBc/Yjb46ymgYr0jEA7MzhWCYo7io1ArxyI90goL84l5Y2zT9e/D0MKH8khRUfU= X-Received: by 2002:a5d:6146:: with SMTP id y6mr3809713wrt.278.1628772928310; Thu, 12 Aug 2021 05:55:28 -0700 (PDT) In-Reply-To: <85k0ks3ugx.fsf@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=tim.visher@gmail.com; helo=mail-wr1-x432.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, HTML_MESSAGE=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-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:132481 Archived-At: On Wed, Aug 11, 2021 at 10:52 AM Sivaram Neelakantan wrote: > I had earlier posted on changing fonts/faces for terminal Emacs (-nw > or nox). Assuming I can detect that I'm running in the terminal in > .Emacs, what can I configure in terms of > faces/fonts/colours/borders/toolbars? More so, assuming *no* X server > is running and TERM returns "xterm/xterm-256color"(like putty/MS terminal) > IF there is a dark theme that is easy on the eyes with large fonts > with decent colours for terminal emacs, that would help. > > All configuration needs to go into .emacs. > IMHO the best way to 'theme' emacs in a terminal is to apply the color theme to the terminal emulator and leave emacs alone, save for setting the frame-background-mode to light or dark if it's not being detected properly. The reason for this is that anything that I want to change about colors for emacs I'd really like to have applied for all my terminal applications. Why would I settle for nice colors in emacs and then jarring in colors in bash? Furthermore many of the configuration options you're referring to have no analog in terminal emacs. Certainly fonts but also toolbars and frame borders and such just aren't configurable in any meaningful way AFAIK. That said, again setting the font in your terminal emulator makes emacs _and_ the rest of your terminal experience nice. That said, if you can already detect that you're in a terminal and furthermore that you're trying to have a single config that behaves differently in CLI vs. GUI then whatever you're configuring can just go behind if or when statements in your config file. Just be aware that some of it isn't relevant. As far as what I like: I'm a fan of Adobe's Source Code Pro font, iTerm2's rendering, and the Solarized Light theme. I've also used dark themes in the past but they're harder on the eyes. YMMV. -- In Christ, Timmy V. https://blog.twonegatives.com http://five.sentenc.es