From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Samuel Banya" Newsgroups: gmane.emacs.help 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 Message-ID: <6cb12786-0365-4f9c-86c0-93e9e38954d7@www.fastmail.com> References: <486c9feb-8bed-41fc-a61f-734f3d26e70b@www.fastmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26014"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.7.0-alpha0-591-gfe6c3a2700-fm-20220427.001-gfe6c3a27 To: "Emanuel Berg" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 25 02:52:29 2022 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 1ntfGH-0006ZC-Lg for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 25 May 2022 02:52:29 +0200 Original-Received: from localhost ([::1]:60402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntfGF-0006RL-As for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 24 May 2022 20:52:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntfDq-0004jW-Gs for help-gnu-emacs@gnu.org; Tue, 24 May 2022 20:49:58 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:59101) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntfDn-0001H8-M7 for help-gnu-emacs@gnu.org; Tue, 24 May 2022 20:49:58 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id D80025C0302 for ; Tue, 24 May 2022 20:49:54 -0400 (EDT) Original-Received: from imap50 ([10.202.2.100]) by compute5.internal (MEProxy); Tue, 24 May 2022 20:49:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1653439794; x=1653526194; bh=PEQq9Dpr2o PLiNjeaQ24DVtWkiDusmpzsEuiA8QQAtw=; b=VtzyNQ+zpjgTRocBs51YV6jezz /HliQnCcZ/AbtQnhi52E7KEoChvlbnkXAptnenJZAH4rO05IB7PldvWRc0MZBC7D Ar17XC6zOm2dnIqP0lw2Ps7hTJeUrhM++TONuQEsQ2wMaXdcXPnp6QMy/MWQGM5A pFvHuysDCfCSWN9qv7T6Xv4xpQJKMA8bX70HdvG3ydZpEZAb63/Fk7mBuLd3IeF5 7rgSmoj1HAzBpKaGU225POzc0JE5rPi7wQsDmJ2esBmnQUdoqaN2FUvuxiKYbt6I vVf16+bHwgWVPi6pq+tQ43uFKkOYxBBqhWlObEy39LO0d9Xbl7qTIVSQN7sw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1653439794; x=1653526194; bh=PEQq9Dpr2oPLiNjeaQ24DVtWkiDu smpzsEuiA8QQAtw=; b=eBVME8Dvw8wf9pAVJnJHxZNAPdb5ZM5SZGSTmAKONBUr NibUsyFU+ZSLHMH1diMBvMtE4Bn4aLRaHgBEESDCeUQINycMTA38WvkzLfxY3Xng hQnXKB9qeunb/0ONTU7f4oA3dAOEeWig2pEIL+rFZMKmRR7mUl6Enj84RMw8otPi MWDfm9B27TGwgD8UwCJkqA3XaIoJ/K9V7ftDT5nHEpZ8ZmipWnc4oyRp/yf3u9KT FKctLiOUTVQb57o4rM2zHSO37Fx+rj3NvtK78ZHBQnirLjSjzjT1DaHKdL4dTM1v Go8aaMhNP8rE+Vo/WNsbfNSMf9uVh3qv6Y2kNpGF7w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrjeeggdefkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrgdtre erreertdenucfhrhhomhepfdfurghmuhgvlhcuuegrnhihrgdfuceoshgsrghnhigrsehf rghsthhmrghilhdrtghomheqnecuggftrfgrthhtvghrnhepkefggedthfdttddtteelje eutdffkedtfeegieegvdetleetteetvdeukeefudeinecuffhomhgrihhnpehsthgrtghk ohhvvghrfhhlohifrdgtohhmpdhrrhdrtghomhenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehssggrnhihrgesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: ib97947f6:Fastmail Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9F9CF1700066; Tue, 24 May 2022 20:49:54 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <486c9feb-8bed-41fc-a61f-734f3d26e70b@www.fastmail.com> Received-SPF: pass client-ip=66.111.4.26; envelope-from=sbanya@fastmail.com; helo=out2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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:137399 Archived-At: 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.) > > > > >