unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Samuel Banya <sbanya@fastmail.com>,
	Emanuel Berg <help-gnu-emacs@gnu.org>
Cc: "'Help-Gnu-Emacs (help-gnu-emacs@gnu.org)'" <help-gnu-emacs@gnu.org>
Subject: RE: [External] : Question Regarding How To Adjust Default Zoom Level In Every New Buffer
Date: Tue, 24 May 2022 18:52:58 +0000	[thread overview]
Message-ID: <CO6PR10MB547333A552C4FC3A405B1673F3D79@CO6PR10MB5473.namprd10.prod.outlook.com> (raw)
In-Reply-To: <fae10ead-d21b-4e6a-be82-6864b3634f76@www.fastmail.com>

No, I don't think you did. You mentioned why you don't want the font to appear too small, by default. That's not the same as saying why you want `text-scaling' to default to +1.

If you want to recalibrate zooming so that what you now see as +1 becomes the new normal (aka 0), then change the default font size.

Why do you want to "adjust the default zoom level", instead of adjusting the default font size?

The default font size is set for a frame by frame attribute `font', and by default for all frames by option `default-frame-alist'. And that's equivalent to what Eric suggested: setting attribute `font' of face `default'.

Maybe you really want to see "+1" in the mode-line, as your starting point? Maybe you want `C-x 0' to continue to reset to the global default, and not to your "+1" scaling default? Maybe you have some other reason?

So far, you haven't said why you want to do what you asked, "as opposed to..."

`text-scale-adjust' works off of the default face height. Why don't you want to just change that default?

I mentioned the reason 'Why' in my initial post.
Is it possible to adjust the default zoom level of any new buffer to +1 by default?
> Is there a way to adjust an Emacs config so that it adjusts the default
> zoom level to +1 or +2?
>
> I ask because on my work Macbook, the default fonts are so small, but
> this is a limitation because of how dumb Macbooks interpret screen
> resolution when you connect two monitors to it since its based upon the
> laptop screen's resolution as the standard. Otherwise, you would have
> to blow up the text and font size of everything within the MacOS
> settings which makes web browsers look really jenky.
>
> With this in mind, is there any way to adjust the 'text-scale-adjust'
> value so that it starts at +1 no matter what?

Why do you want to start with +1 `text-scale-adjust',
as opposed to just setting the font with the size you
want in `default-frame-alist'?  That will give you
the baseline size you want for text-scaling (as zero,
not as +1).

(You could adjust that setting to whatever platform
you're currently running Emacs on.)


  reply	other threads:[~2022-05-24 18:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-24 14:58 Question Regarding How To Adjust Default Zoom Level In Every New Buffer Samuel Banya
2022-05-24 15:38 ` Eric S Fraga
2022-05-24 16:59   ` Samuel Banya
2022-05-24 19:03     ` Eli Zaretskii
2022-05-24 16:14 ` [External] : " Drew Adams
2022-05-24 16:58   ` Samuel Banya
2022-05-24 18:52     ` Drew Adams [this message]
2022-05-24 18:54   ` FW: " Drew Adams
2022-05-24 20:59     ` Samuel Banya
2022-05-25  0:49       ` Samuel Banya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CO6PR10MB547333A552C4FC3A405B1673F3D79@CO6PR10MB5473.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=sbanya@fastmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).