google code-beautifer

星期四, 12月 13, 2007

(X)Emacs字體設定

Emacs


~/.emacs


(setq default-frame-alist
'(
(font . "-*-fixed-medium-r-normal-*-15-*-*-*-c-*-*-*") ;; 設定每一次開新的視窗(frame in Emacs) 都設定此一字型集
(height . 50)
;(width . 80)
(foreground-color . "Black")
(background-color . "Snow1")
(cursor-color . "Red")
)
)


Xemacs



在 Options -> Font size 下選完大小(比如說15pt)
再於Options -> 按 Save Options to Init File

~/custom.el 就會多出下的設定


(custom-set-faces
'(default ((t (:size "15pt" :family "Fixed"))) t))


當然也可以自行更改 ~/custom.el 裡的內容 但這只會更動選單以外的字體