You are not logged in.

#1 2008-06-24 02:34:29

jmrbcu
Member
From: Cuba
Registered: 2007-08-20
Posts: 112

emacs and fonts

hi folks, I don't like my emacs default font, I would like to set my default emacs font to terminus but I can't. How to do that?


--------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.
Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales
-----------------------------------------------------------------

Offline

#2 2008-06-24 03:15:03

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: emacs and fonts

set something like:
emacs.font: -*-terminus-*-*-*-*-14-*-*-*-*-*-*-*
in your ~/.Xdefaults. You can reload the settings with 'xrdb -load ~/.Xdefaults'

Offline

#3 2008-06-24 05:26:58

jbromley
Member
From: Pasadena, CA
Registered: 2007-02-04
Posts: 268

Re: emacs and fonts

Try

Emacs*font: -*-terminus-*-*-*-*-14-*-*-*-*-*-*-*

in your .Xresources/.Xdefaults file. The difference from the above post is that this will change all fonts in Emacs to terminus. I believe the one in the above post will only affect text in frames, i.e. no modeline, menu bar, menus (if you use them), etc.

Offline

#4 2008-06-24 06:15:50

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: emacs and fonts

jbromley is right; although I get modeline changed, and menus are from the gtk2 theme. Experiment.

Offline

#5 2008-06-24 13:23:49

jmrbcu
Member
From: Cuba
Registered: 2007-08-20
Posts: 112

Re: emacs and fonts

it doesn't work, I had set my .Xdefaults with:

emacs.font: -*-terminus-*-*-*-*-14-*-*-*-*-*-*-*

and my Xresources with:

Emacs*font: -*-terminus-*-*-*-*-14-*-*-*-*-*-*-*

and nothing work, and I hace installed terminus-font!!!


--------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.
Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales
-----------------------------------------------------------------

Offline

#6 2008-06-24 15:50:55

tesjo
Member
Registered: 2007-11-30
Posts: 164

Re: emacs and fonts

Why don't you try to add

(set-default-font "-*-terminus-*-*-*-*-14-*-*-*-*-*-*-*")

to your ~/.emacs file.

Edit: I see terminus is not available in xfontsel either. I am not sure why that is but as such I don't think you can use the methods that have been given. Just a note on that though, if you run xfontsel you can find an available font and use .emacs or .Xdefaults

Last edited by tesjo (2008-06-24 16:12:50)

Offline

#7 2008-06-24 19:36:38

Abelian
Member
Registered: 2008-04-23
Posts: 63

Re: emacs and fonts

I had an issue with terminus not being in xfontsel earlier - Not sure why it must be a problem with the install script. I loosely followed the instructions here to get it set up: http://64dc.wordpress.com/category/linux/.

Offline

#8 2008-06-24 19:55:37

freakcode
Member
From: São Paulo - Brazil
Registered: 2007-11-03
Posts: 410
Website

Re: emacs and fonts

Doesn't emacs allow Xft font definitions? I'm asking because I don't use it (I use vim), but I'm able to set vim fonts with Xft defitions (Xft are like "*font:Liberation Mono-9").

Offline

#9 2008-06-24 20:42:09

jmrbcu
Member
From: Cuba
Registered: 2007-08-20
Posts: 112

Re: emacs and fonts

problem solved, I added to my fontpath definitions in xorg the path of the terminus font (/usr/share/fonts/local), restarted X and, it work!!!. with the first method: emacs.font: -*-terminus-*-*-*-*-14-*-*-*-*-*-*-*
now I need to set the same terminus font to emacs running with no window: emacs -nw


--------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.
Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales
-----------------------------------------------------------------

Offline

#10 2008-06-24 23:17:37

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: emacs and fonts

'emacs -nw' runs in the terminal, so you need to set the for xterm/urxvt/terminal/whatever you're running.

Offline

#11 2008-06-26 13:53:35

jmrbcu
Member
From: Cuba
Registered: 2007-08-20
Posts: 112

Re: emacs and fonts

thanks


--------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.
Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales
-----------------------------------------------------------------

Offline

#12 2008-06-26 14:24:50

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: emacs and fonts

Wonderful, I was wondering how to switch font, thanks! I can now use a reasonable font size - like 10, or 8.

Offline

Board footer

Powered by FluxBB