How to set default font size in Emacs 25?

3.5k Views Asked by At
  1. Old ~/.emacs ignored in Emacs 25:
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(default ((t (:background nil :family "Droid Sans Mono" :foundry "unknown" :slant normal :weight normal :height 164 :width normal))))
  1. Menu > Set default font, Menu > Save Options - don't save selected font after restart.

Total, options ran out. Where can I find documentation on how to do this in Emacs 25?

2

There are 2 best solutions below

0
On

These seems to be an issue with gconf overriding emacs customizations. As answered here.

Simply put these line in your .emacs (define-key special-event-map [config-changed-event] #'ignore)

0
On

You can set the font in your init.el setting file

(set-default-font "Inconsolata 12")

You can also try the following:

 (set-face-attribute 'default nil
                :family "Inconsolata" :height 150 :weight 'normal)