unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* terminal emacs configuration take 2
@ 2021-08-11 14:51 Sivaram Neelakantan
  2021-08-12 12:54 ` Tim Visher
  0 siblings, 1 reply; 3+ messages in thread
From: Sivaram Neelakantan @ 2021-08-11 14:51 UTC (permalink / raw)
  To: help-gnu-emacs

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. 

sivaram
-- 




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: terminal emacs configuration take 2
  2021-08-11 14:51 terminal emacs configuration take 2 Sivaram Neelakantan
@ 2021-08-12 12:54 ` Tim Visher
  2021-08-13 15:52   ` Sivaram Neelakantan
  0 siblings, 1 reply; 3+ messages in thread
From: Tim Visher @ 2021-08-12 12:54 UTC (permalink / raw)
  To: Sivaram Neelakantan; +Cc: emacs

On Wed, Aug 11, 2021 at 10:52 AM Sivaram Neelakantan <nsivaram.net@gmail.com>
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: terminal emacs configuration take 2
  2021-08-12 12:54 ` Tim Visher
@ 2021-08-13 15:52   ` Sivaram Neelakantan
  0 siblings, 0 replies; 3+ messages in thread
From: Sivaram Neelakantan @ 2021-08-13 15:52 UTC (permalink / raw)
  To: help-gnu-emacs

On Thu, Aug 12 2021,Tim Visher wrote:


[snipped 14 lines]

> 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.

Right, went ahead and changed the MS Terminal fontsize instead of
trying anything in emacs.

>
> 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.

Yeah, using (when (window-system) ... to wrap my GUI settings.


Thanks.

[snipped 14 lines]



sivaram
-- 




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-13 15:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-11 14:51 terminal emacs configuration take 2 Sivaram Neelakantan
2021-08-12 12:54 ` Tim Visher
2021-08-13 15:52   ` Sivaram Neelakantan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).