unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Samuel Banya" <sbanya@fastmail.com>
To: "Emanuel Berg" <help-gnu-emacs@gnu.org>
Subject: Re: FW: [External] : Question Regarding How To Adjust Default Zoom Level In Every New Buffer
Date: Tue, 24 May 2022 20:49:33 -0400	[thread overview]
Message-ID: <6cb12786-0365-4f9c-86c0-93e9e38954d7@www.fastmail.com> (raw)
In-Reply-To: <486c9feb-8bed-41fc-a61f-734f3d26e70b@www.fastmail.com>

I think I'm getting closer. I did some research on Stack Overflow and found a neat hook function idea that could run each time a new buffer is created:
- https://stackoverflow.com/questions/7899949/is-there-an-emacs-hook-that-runs-after-every-buffer-is-created

The answer at the very end looks like what I want to use:
#+begin_src emacs-lisp
(if (not (active-minibuffer-window)) (do-something-as-it-is-not-minibuffer)))
#+end_src

My variation of this, which doesn't work unfortunately yet:
#+begin_src emacs-lisp
  (when (string= system-name "Samuels-MBP.tampabay.rr.com")
    (if (not (active-minibuffer-window)) (text-scale-increase)))
#+end_src

Going to see how to actually think to turn that person's pseudocode into actual elisp though.

On Tue, May 24, 2022, at 4:59 PM, Samuel Banya wrote:
> I just want to change the default zoom to +1, that's it honestly.
> 
> On Tue, May 24, 2022, at 2:54 PM, Drew Adams wrote:
> > [Forwarding my initial msg to the list, as it got dropped from Reply All]
> > 
> > > 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-25  0:49 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
2022-05-24 18:54   ` FW: " Drew Adams
2022-05-24 20:59     ` Samuel Banya
2022-05-25  0:49       ` Samuel Banya [this message]

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=6cb12786-0365-4f9c-86c0-93e9e38954d7@www.fastmail.com \
    --to=sbanya@fastmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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).