Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to set font for emacs

0 views
Skip to first unread message

n179911

unread,
Jul 3, 2009, 6:04:46 PM7/3/09
to help-gn...@gnu.org
Hi,

I have added the following in my .emacs

(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(autoface-default ((t (:inherit default :strike-through nil :underline nil :sl
ant normal :weight normal :height 130 :width normal :family "inconsolata"))))

)

But when I start emacs (open in my xterm, not a separate window), it
does not load the new font I specified.

Can you please tell me how to fix my problem?

Thank you.


Marc Tfardy

unread,
Jul 4, 2009, 4:20:27 AM7/4/09
to
n179911 schrieb:

I assume you start Emacs with "emacs -nw". So, this is absolutely
correct behaviour. In this case you must set fonts for xterm. You can do
this interactively for current session with SHIFT+right mouse button (or
middle mouse button, I can't remember) or permanently in your .Xresources
with:

xterm*font: FONT-DEFINITON-STRING

or

XTerm*font: FONT-DEFINITON-STRING

regards
Marc

0 new messages