* calling set-face-font in the .gun-emacs (aka .emacs)
@ 2005-05-17 5:14 Hattuari
2005-05-18 10:12 ` Peter Dyballa
[not found] ` <mailman.345.1116411559.25862.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 6+ messages in thread
From: Hattuari @ 2005-05-17 5:14 UTC (permalink / raw)
I've concluded that I am virtually immune to Lisp. 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. I
finally went to M-x customize-faces and saved the setting after I changed
it with the interactive command. I feel certain there is a way to tell
Emacs to evaluate the function when the .gnu-emacs (the name for .emacs on
my system) file is loaded. (How) Can this be done?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: calling set-face-font in the .gun-emacs (aka .emacs)
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>
1 sibling, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2005-05-18 10:12 UTC (permalink / raw)
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"))))
--
Greetings
Pete
Think of XML as Lisp for COBOL programmers.
-- Tony-A (some guy on /.)
--
Mit friedvollen Grüßen
Pete
The human animal differs from the lesser primates in his passion for
lists of "Ten Best".
-- H. Allen Smith
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: calling set-face-font in the .gun-emacs (aka .emacs)
[not found] ` <mailman.345.1116411559.25862.help-gnu-emacs@gnu.org>
@ 2005-05-18 20:25 ` Hattuari
2005-05-19 17:32 ` Kevin Rodgers
[not found] ` <mailman.878.1116524340.25862.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 6+ messages in thread
From: Hattuari @ 2005-05-18 20:25 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: calling set-face-font in the .gun-emacs (aka .emacs)
2005-05-18 20:25 ` Hattuari
@ 2005-05-19 17:32 ` Kevin Rodgers
[not found] ` <mailman.878.1116524340.25862.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 6+ messages in thread
From: Kevin Rodgers @ 2005-05-19 17:32 UTC (permalink / raw)
Hattuari wrote:
> What I was really trying to learn is how to call an interactive command
> programmatically. I believe that can be done.
Use `C-h f'.
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: calling set-face-font in the .gun-emacs (aka .emacs)
[not found] ` <mailman.878.1116524340.25862.help-gnu-emacs@gnu.org>
@ 2005-06-01 9:42 ` Hattuari
2005-06-01 15:38 ` drkm
0 siblings, 1 reply; 6+ messages in thread
From: Hattuari @ 2005-06-01 9:42 UTC (permalink / raw)
Kevin Rodgers wrote:
> Hattuari wrote:
>> What I was really trying to learn is how to call an interactive command
>> programmatically. I believe that can be done.
>
> Use `C-h f'.
>
The answer I was looking for was to use real quotation marks around the font
specification
(set-face-font 'default
"-adobe-courier-bold-r-normal--18-180-75-75-m-110-iso8859-1")
`C-h f' doesn't tell me that.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: calling set-face-font in the .gun-emacs (aka .emacs)
2005-06-01 9:42 ` Hattuari
@ 2005-06-01 15:38 ` drkm
0 siblings, 0 replies; 6+ messages in thread
From: drkm @ 2005-06-01 15:38 UTC (permalink / raw)
Hattuari <susudata@setidava.kushan.aa> writes:
> The answer I was looking for was to use real quotation marks around the font
> specification
> (set-face-font 'default
> "-adobe-courier-bold-r-normal--18-180-75-75-m-110-iso8859-1")
> `C-h f' doesn't tell me that.
Yes, it does:
,----[ C-h f set-face-font RET ]
| (set-face-font face font &optional frame)
|
| Change font-related attributes of face to those of font (a
| string).
`----
BTW, use 'set-face-attribute' instead of 'set-face-font' if you
are not releated to compatibility issues:
(set-face-attribute 'default nil :font "-adobe-...")
--drkm
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-06-01 15:38 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
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).