unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Mekeor Melire <mekeor.melire@gmail.com>
To: John Mastro <john.b.mastro@gmail.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Default font / size
Date: Wed, 21 Jun 2017 01:30:47 +0200	[thread overview]
Message-ID: <8760fqqlso.fsf@gmail.com> (raw)
In-Reply-To: <CAOj2CQQhEfXbieDBJiUfvr+TxsefUHZxncb1RSEosgozB7WV5A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1055 bytes --]

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.


[-- Attachment #2: init.snip.el --]
[-- Type: application/emacs-lisp, Size: 1254 bytes --]

  parent reply	other threads:[~2017-06-20 23:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-20 21:50 Default font / size John Mastro
2017-06-20 22:03 ` John Mastro
2017-06-20 23:30 ` Mekeor Melire [this message]
2017-06-21  9:31 ` Emanuel Berg
2017-06-21 17:47 ` Eli Zaretskii
2017-06-21 19:15   ` John Mastro
2017-06-21 19:30     ` Eli Zaretskii
2017-06-21 20:29       ` John Mastro

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=8760fqqlso.fsf@gmail.com \
    --to=mekeor.melire@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=john.b.mastro@gmail.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).