[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is this "save practice" (setting default font scale)?
From: |
Arthur Miller |
Subject: |
Re: Is this "save practice" (setting default font scale)? |
Date: |
Sat, 21 Nov 2020 07:12:36 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> (add-hook 'after-make-frame-functions
>> (lambda (frame)
>> (set-face-attribute 'default nil :height 160)))
> [...]
>> I have refactored my init file and trying to push some things to
>> early-init to save some load time. What I have found is that above
>> little code adds ~200 ms to the init time; take or give.
>
> That's probably because of the extra work it imposes because it changes
> the default face after the first frame is created: Emacs has just
> created the frame (which involves realizing a bunch of faces) and you're
> telling it should go and redo some of that work with a new value of
> `default`.
Yes I know; that was reason why I started to refactor this into
early-init, so I can skip after-make-frame and double work.
> Setting your faces via Custom will avoid this double work because the
> new setting can be installed before creating the first frame, so the
> frame can be created immediately with the right faces.
I know.
I just didn't know where/how default face was set and
stored. Daniel pointed me to it already.
- Re: Is this "save practice" (setting default font scale)?, (continued)
- Re: Is this "save practice" (setting default font scale)?, Arthur Miller, 2020/11/20
- Re: Is this "save practice" (setting default font scale)?, chad, 2020/11/20
- Re: Is this "save practice" (setting default font scale)?, Arthur Miller, 2020/11/21
- Re: Is this "save practice" (setting default font scale)?, Manuel Uberti, 2020/11/21
- Re: Is this "save practice" (setting default font scale)?, Arthur Miller, 2020/11/21
- Re: Is this "save practice" (setting default font scale)?, Eli Zaretskii, 2020/11/21
- RE: Is this "save practice" (setting default font scale)?, arthur miller, 2020/11/21
Re: Is this "save practice" (setting default font scale)?, Stefan Monnier, 2020/11/20
- Re: Is this "save practice" (setting default font scale)?,
Arthur Miller <=