Re: calling set-face-font in the .gun-emacs (aka .emacs)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: calling set-face-font in the .gun-emacs (aka .emacs)

Hattuari
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.
_______________________________________________
Help-gnu-emacs mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
Reply | Threaded
Open this post in threaded view
|

Re: calling set-face-font in the .gun-emacs (aka .emacs)

drkm
Hattuari <[hidden email]> 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
_______________________________________________
Help-gnu-emacs mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs