unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* change term font
@ 2011-03-30 10:44 henry atting
  2011-03-30 11:45 ` Eli Zaretskii
       [not found] ` <mailman.5.1301485547.6119.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: henry atting @ 2011-03-30 10:44 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,

is it possible to change the font for the emacs term?
As far as I can see only the customization of background and
foreground color is allowed.
Since I use a non monospaced font as default font some things (e.g.
mutt) are displayed messy within emacs term.

henry

-- 
http://literaturlatenight.de


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

* Re: change term font
  2011-03-30 10:44 change term font henry atting
@ 2011-03-30 11:45 ` Eli Zaretskii
       [not found] ` <mailman.5.1301485547.6119.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2011-03-30 11:45 UTC (permalink / raw)
  To: help-gnu-emacs

> From: henry atting <nsmp_02@online.de>
> Newsgroups: gnu.emacs.help
> Date: Wed, 30 Mar 2011 12:44:25 +0200
> 
> is it possible to change the font for the emacs term?

Customize the frame parameters via default-frame-alist (or
initial-frame-alist, if you do that from your ~/.emacs).  The
parameter's name is `font'.  There's an example in the Emacs manual,
in the node "Creating Frames".



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

* Re: change term font
       [not found] ` <mailman.5.1301485547.6119.help-gnu-emacs@gnu.org>
@ 2011-03-30 13:21   ` henry atting
  0 siblings, 0 replies; 3+ messages in thread
From: henry atting @ 2011-03-30 13:21 UTC (permalink / raw)
  To: help-gnu-emacs

Eli Zaretskii <eliz@gnu.org> writes:

>> From: henry atting <nsmp_02@online.de>
>> Newsgroups: gnu.emacs.help
>> Date: Wed, 30 Mar 2011 12:44:25 +0200
>> 
>> is it possible to change the font for the emacs term?
>
> Customize the frame parameters via default-frame-alist (or
> initial-frame-alist, if you do that from your ~/.emacs).  The
> parameter's name is `font'.  There's an example in the Emacs manual,
> in the node "Creating Frames".
>

Okay, if that's the only way...

As I have already some lines for `default-frame-alist` and
`initial-frame-alist` (both with a proportional font) I did it like
this:


--8<---------------cut here---------------start------------->8---

(defun for-term-only ()
  "Make a frame for guess what"
  (interactive)
  (let ((frame (make-frame '(
		  			  (left-fringe . 1)
			     (right-fringe . 1)     
 			     (background-color . "white")
		             (foreground-color . "black")
                             (font . "DejaVu Sans Mono-11")
			     (internal-border-width . 12)
			     (menu-bar-lines . 0)
                             (width . 90) (height . 36)
			     (tool-bar-lines . 0)
			     (unsplittable . t)))))
    (select-frame frame)
  ))
--8<---------------cut here---------------end--------------->8---

Thanks,
henry

-- 
http://literaturlatenight.de


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

end of thread, other threads:[~2011-03-30 13:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-30 10:44 change term font henry atting
2011-03-30 11:45 ` Eli Zaretskii
     [not found] ` <mailman.5.1301485547.6119.help-gnu-emacs@gnu.org>
2011-03-30 13:21   ` henry atting

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).