unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to set font for emacs
@ 2009-07-03 22:04 n179911
  0 siblings, 0 replies; 2+ messages in thread
From: n179911 @ 2009-07-03 22:04 UTC (permalink / raw)
  To: help-gnu-emacs

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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to set font for emacs
       [not found] <mailman.1785.1246675730.2239.help-gnu-emacs@gnu.org>
@ 2009-07-04  8:20 ` Marc Tfardy
  0 siblings, 0 replies; 2+ messages in thread
From: Marc Tfardy @ 2009-07-04  8:20 UTC (permalink / raw)
  To: help-gnu-emacs

n179911 schrieb:
> 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?

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-04  8:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1785.1246675730.2239.help-gnu-emacs@gnu.org>
2009-07-04  8:20 ` How to set font for emacs Marc Tfardy
2009-07-03 22:04 n179911

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).