all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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 --
     [not found] <mailman.2015.1181657760.32220.help-gnu-emacs@gnu.org>
2007-06-14 16:45 ` newbie: font colors in minibuffer Daniel Jensen
2007-06-12 14:19 Pawel
  -- strict thread matches above, loose matches on Subject: below --
2007-06-12 12:25 Pawel

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.