Index Related with Emacs

Table of Contents

1 About This Page

Emacs is my favorite editor and I use it to finish lots of my work without a break.

Here is some problems which I met while I am using Emacs. I think there are helpful for the Emacs new guys.

2 Why my font setting changes while I open a new frame?

In many situation, we need to open some Emacs frames for better editing performances. For example, one for normal text editing and the other for ECB coding.

But I don't know why my Emacs font setting changed when I use command M-x new-frame to open a new Emacs frame.

I just don't like the default font which is used by Emacs when I start a new frame.

Trying to solve this problem, we need to set the default frame parameters by following code:

(require 'cl)
(let ((font-cell (assoc 'font default-frame-alist)))
  (if font-cell 
     (setf (cdr font-cell) "your-font")
     (setf default-frame-alist (acons 'font "your-font" default-frame-alist))))

Or just using M-x customize-variable RET default-frame-alist RET to set it.

comments powered by Disqus

3 Search my webs

comments powered by Disqus

Date: 2014-02-14T14:40+0800

Author: Water Lin

Org version 7.9.3f with Emacs version 24

Validate XHTML 1.0