[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Default font / size
From: |
Mekeor Melire |
Subject: |
Re: Default font / size |
Date: |
Wed, 21 Jun 2017 01:30:47 +0200 |
User-agent: |
mu4e 0.9.18; emacs 25.2.1 |
John Mastro <john.b.mastro@gmail.com> writes:
> The default font in "emacs -Q" in "Courier New-10.0". I'd like to change
> that to "Consolas-10.0" via Lisp code, but without explicitly specifying
> the font size of "10.0"[1].
>
> Is there any way to do that? My first thought was to try
>
> (add-to-list 'default-frame-alist '(font . "Consolas"))
>
> but that results in "Consolas-12".
>
> [1]: My goal is to avoid having to specify a different font size for
> each of the systems on which I use Emacs, since Emacs presumably
> has logic to pick a reasonable font size.
Personally, I do exactly that: For each host, I specify my favorite
font-size. If you want to have a look at the relevant part of my
init.el, take a look at the inline-attachment at the end of this mail or
at this link (to a proprietary web-service):
https://github.com/mekeor/config/blob/master/home/mekeor/.emacs.d/init.el#L1-L28
Sorry for not being helpful by not answering your question. I'd also
like to know if there is a solution like what you're hoping for.
init.snip.el
Description: init.snip.el