unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Hattuari <susudata@setidava.kushan.aa>
Subject: Re: calling set-face-font in the .gun-emacs (aka .emacs)
Date: Wed, 18 May 2005 16:25:57 -0400	[thread overview]
Message-ID: <l7adnV_719lEORbfRVn-vA@speakeasy.net> (raw)
In-Reply-To: mailman.345.1116411559.25862.help-gnu-emacs@gnu.org

Peter Dyballa wrote:

> 
> Am 17.05.2005 um 07:14 schrieb Hattuari:
> 
>> I spent the last hour
>> trying to figure out how to call set-face-font so that the default face
>> font is -adobe-courier-bold-r-normal--20-140-100-100-m-110-iso8859-15.
> 
> set-face-font is an interactive compiled Lisp function in `faces'.
> (set-face-font face font &optional frame)
> 
> Change font-related attributes of face to those of font (a string).
> frame nil or not specified means change face on all frames.
> This sets the attributes `:family', `:width', `:height', `:weight',
> and `:slant'.  When called interactively, prompt for the face and font.
> 
> One example I found with find-grep:
> 
> (set-face-font face gamegrid-font)
> 
> Could be close to my face customized prompt's setting:
> 
>   '(comint-highlight-prompt ((t (:background "LemonChiffon" :foreground
> "dark blue" :weight bold :family "-*-courier
> new-medium-r-*-10646-1"))))

Thanks for the pointer.  I'm a bit gunshy when it comes to playing around
with the fonts that way.  It hasn't always turned out the way I expected. 
Perhaps I will try again.

What I was really trying to learn is how to call an interactive command
programmatically.  I believe that can be done.

  parent reply	other threads:[~2005-05-18 20:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-17  5:14 calling set-face-font in the .gun-emacs (aka .emacs) Hattuari
2005-05-18 10:12 ` Peter Dyballa
     [not found] ` <mailman.345.1116411559.25862.help-gnu-emacs@gnu.org>
2005-05-18 20:25   ` Hattuari [this message]
2005-05-19 17:32     ` Kevin Rodgers
     [not found]     ` <mailman.878.1116524340.25862.help-gnu-emacs@gnu.org>
2005-06-01  9:42       ` Hattuari
2005-06-01 15:38         ` drkm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=l7adnV_719lEORbfRVn-vA@speakeasy.net \
    --to=susudata@setidava.kushan.aa \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).