For a certain application, I would like to start up emacsclient, but with a slightly smaller font. I can do it for a running emacs by eval'ing:

(set-face-attribute 'default nil :height 90)

But how to do it with command-line arguments just for the frame opened by emacsclient? The -F flag looks promising, but I'm not sure of the syntax.

1 Answer 1


The -F flag takes an alist (short for association list), which is a list where each element is a cons cell of the form (parameter . value). One of the available parameters is font, so to specify e.g. "Consolas 12", you'd say

emacsclient -F '((font . "Consolas 12"))'
  • Thanks, rpluim. That answers the question. Is there a way to say something like, the default font at a smaller size? Commented Feb 9, 2020 at 19:54
  • 1
    The only way I see to get that is if you define a fontset based on the default font, but at a smaller size, and then use that in the font specification.
    – rpluim
    Commented Feb 10, 2020 at 9:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.