unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* newbie: font colors in minibuffer
@ 2007-06-12 12:25 Pawel
  0 siblings, 0 replies; 3+ messages in thread
From: Pawel @ 2007-06-12 12:25 UTC (permalink / raw)
  To: emacs mailing list

Hallo group members.

following function displays message in MINIBUFFER:

(defun pppp ()
  "hallo"
  (interactive)
  (message "hallo from minibuffer"))

Can You tell me what topic should I read to know how to change the color of "from" word.

Regards,
Pawel

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

* newbie: font colors in minibuffer
@ 2007-06-12 14:19 Pawel
  0 siblings, 0 replies; 3+ messages in thread
From: Pawel @ 2007-06-12 14:19 UTC (permalink / raw)
  To: emacs mailing list

Hallo group members.

following function displays message in MINIBUFFER:

(defun pppp ()
  "hallo"
  (interactive)
  (message "hallo from minibuffer"))

Can You tell me what topic should I read to know how to change the color of "from" word.

Regards,
Pawel

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

* Re: newbie: font colors in minibuffer
       [not found] <mailman.2015.1181657760.32220.help-gnu-emacs@gnu.org>
@ 2007-06-14 16:45 ` Daniel Jensen
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Jensen @ 2007-06-14 16:45 UTC (permalink / raw)
  To: help-gnu-emacs

Pawel <paulino90@tenbit.pl> writes:

> following function displays message in MINIBUFFER:
>
> (defun pppp ()
>   "hallo"
>   (interactive)
>   (message "hallo from minibuffer"))
>
> Can You tell me what topic should I read to know how to change the
> color of "from" word.

Read about text properties and faces in the elisp manual. I would also
recommend looking through source code and learning from that.

Here is a version of your function that uses propertize to set the face
property. But you should use an existing face or define your own, so
that it can be customized.

(defun pppp ()
  "hallo"
  (interactive)
  (message "hallo %s minibuffer"
           (propertize "from" 'face '(:foreground "red"))))

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

end of thread, other threads:[~2007-06-14 16:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-12 12:25 newbie: font colors in minibuffer Pawel
  -- strict thread matches above, loose matches on Subject: below --
2007-06-12 14:19 Pawel
     [not found] <mailman.2015.1181657760.32220.help-gnu-emacs@gnu.org>
2007-06-14 16:45 ` Daniel Jensen

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