help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: changing font and font size in terminal emacs-27.2


From: Sivaram Neelakantan
Subject: Re: changing font and font size in terminal emacs-27.2
Date: Wed, 11 Aug 2021 20:12:17 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (windows-nt)

On Mon, Aug 09 2021,Ken Goldman wrote:

> On 8/6/2021 1:03 PM, Sivaram Neelakantan wrote:
>> How do I change the font and size when I run emacs in a terminal i.e
>> emacs-nox?  I'm running emacs-27.2 in wsl and for the GUI emacs I can
>> configure the font like so
>
> A bit off topic, but ...
>
> I use WSL, and I run the MATE window manager.  I can use GUI emacs
> as well as any other GUI.

True that.  And I did mention that I could configure the GUI Emacs
version but having issues with terminal emacs.

What I was looking for, was the means to change various emacs -nw,
Emacs-nox parameters in just the terminal.  And still looking for a
theme or a set of fonts/faces that would just assume 16 bit colour and
give a decent terminal interface emacs a bit of colour/fonts/faces.

I've pretty much given up on .X* configuration changes and decided to
look for configuration options in 1 place i.e .emacs

For GUI, I've gotten it down to

(when (window-system) ;; looks like this is deprecated
   (setq default-frame-alist
         '((top . 24) (left . 1) (width . 172) (height . 38)
           (background-color . "DarkSlateGray")
               (foreground-color . "Wheat")
           (cursor-color . "Red")
               (horizontal-scroll-bars . nil)
               (vertical-scroll-bars . nil)
           (font . "-outline-Cascadia 
Mono-normal-normal-normal-mono-17-*-*-*-c-*-iso8859-1")
         ))
   (setq initial-frame-alist
         '((top . 24) (left . 1) (width . 172) (height . 38)))
   (set-frame-font "-outline-Cascadia
   Mono-normal-normal-normal-mono-17-*-*-*-c-*-iso8859-1"))

And now want to set terminal Emacs along similar lines.

sivaram
-- 




reply via email to

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