10월 27, 2007

Change emacs font permanently

게시됨: emacs, 리눅스, 프로그래밍, linux, Programming , 시간: 5:13 am by KJ

From CSE HUJI Emacs Fonts HOWTOTo check if some font is available in emacs do following:

1. Switch to *scratch* buffer.
2. Type: (prin1-to-string (x-list-fonts “font-you-whant-to-check or pattern”)).
3. Place the cursor after the last closing paren and hit C-j. List of the names of available fonts matching given pattern will appear in the current buffer (*scratch*).
4. For listing of all available fonts use (prin1-to-string (x-list-fonts “*”)).

Pick one that you want to use and add or edit a line in ~/.Xdefaults

Emacs.font: font-name

These steps are not enough to make a new font in effect. Do the followings.

From How can I change the font for emacs in ubuntu 7.10

Edit~/ .Xdefaults
$ xrdb -merge ~/.Xdefaults

A better way is found.

From Permanent Font Change (~/.emacs)

Add in ~/.emacs :

(setq default-frame-alist '((font . "-font-name-from-xfontsel")))

댓글 남기기

아래 항목을 채우거나 오른쪽 아이콘 중 하나를 클릭하여 로그 인 하세요:

WordPress.com 로고

WordPress.com의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

Twitter 사진

Twitter의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

Facebook 사진

Facebook의 계정을 사용하여 댓글을 남깁니다. 로그아웃 / 변경 )

%s에 연결하는 중

팔로우

모든 새 글을 수신함으로 전달 받으세요.