You are not logged in.

#1 2009-06-24 22:02:46

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

Setting font in emacs-cvs [solved, sorry]

Hai.

I've installed emacs-cvs to see the new features that'll be present in the new version and because I wanted to try the --daemon mode. So far, so good. The problem is that it won't use the font I want it to use if I start a new frame with 'emacsclient -c'.

The relevant part of my ~/.emacs is a single line:
(set-default-font "Envy Code R-8")

If I start emacs with 'emacs', then it shows up using this font. If I run 'emacs --daemon' and then 'emacsclient -c', it loads up using the font set in my ~/.Xdefaults ("*font: -*-proggytiny-*-*-*-*-*-*-*-*-*-*-*-*"). And yes, I've restarted my emacs daemon after changing ~/.emacs.

Does anyone know how to solve this?

Edit: I should've searched better before, sorry. I should've used

(setq default-frame-alist '((font-backend . "xft")
                (font . "Envy Code R-8")
                (cursor-color . "white")))

instead of that single line.

Last edited by andre.ramaciotti (2009-06-24 22:51:44)


(lambda ())

Offline

#2 2009-06-25 20:59:27

agorist
Member
Registered: 2009-06-25
Posts: 3

Re: Setting font in emacs-cvs [solved, sorry]

I utilize my .Xdefaults to set my emacs font.

Depending on how I'm feeling, here's a list of fonts I've been fond of using:

% grep emacs .Xdefaults
!emacs*font:-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
!emacs.font:consolas-10
emacs.font:dina-10
!emacs.font:Terminal-10
!emacs.font:DejaVu Sans Mono-11

xrdb ~/.Xdefaults and reload emacs.

Offline

#3 2009-06-25 21:04:26

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

Re: Setting font in emacs-cvs [solved, sorry]

Things are working as I'd like now, but thanks for the tip. smile


(lambda ())

Offline

Board footer

Powered by FluxBB