help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: change term font


From: henry atting
Subject: Re: change term font
Date: Wed, 30 Mar 2011 15:21:06 +0200
User-agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]