emacstext-editorcustomizationfont-sizeemacs-speedbar

How do you change the Emacs init file to customize the font for new frames?


I want to know, what text do I have to input in the .emacs file so that it uses a especific font (like the clean 5x8) on the new frames, such as with the speedbar. I can modify the speedbar font size and type by using SHIFT-LeftClick but I want it to stay by default.


Solution

  • There are several choices. Perhaps the easiest is to use Customize to change the default frame font. Choose Customize from the menu, use a regex to find default-frame-alist.

    Set the Font property (You may have to add it to the list.) Mine is set as

    "-*-*-medium-r-normal--16-*-*-*-*-*-fontset-osaka"
    

    Second choice is to actually set the default-frame-alist in your .emacs.

    Here's a hint: set up your current frame the way you like it, then type

    (pp (current-frame-configuration))^J
    

    in the *scratch* buffer to find out all the frame parameters.