Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use the following in my .emacs to set my default font to Ubuntu Mono:

(set-face-attribute 'default nil :font "Ubuntu Mono")

However, the defauly font size is too tiny for me. In my menubar I see Options->Set Default Font..., but the changes I make there does not propogate to my next session.

Should I be setting something in .emacs to set default font size? (I like it to be 24)


share|improve this question
possible duplicate stackoverflow.com/questions/294664/… – harish.venkat Feb 10 '12 at 17:32
I think it's just because you didn't "save" the setting (I remember there is another option in the menubar to save the setting.) – yuyichao Feb 10 '12 at 17:37
Thanks for the link to the question, it works now. – hpy Feb 10 '12 at 17:38
@harish.venkat Nice find. We can't actually close as a duplicate of a post on another site, but I used that answer to write one here – Michael Mrozek Feb 10 '12 at 19:18

An answer to a similar Stack Overflow question mentions that another argument to set-face-attribute is height, which takes an integer representing tenths of a point. So to make it 24pt, you would use:

(set-face-attribute 'default nil :font "Ubuntu Mono" :height 240)
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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