From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: what's simple syntax for defining faces? (just color text and background color) Date: Wed, 2 Sep 2009 12:25:37 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1251921895 11817 80.91.229.12 (2 Sep 2009 20:04:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Sep 2009 20:04:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 02 22:04:48 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Miw4U-0005n0-Ih for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Sep 2009 22:04:46 +0200 Original-Received: from localhost ([127.0.0.1]:58833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Miw4T-0000cB-TB for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Sep 2009 16:04:45 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!q40g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1251919537 23050 127.0.0.1 (2 Sep 2009 19:25:37 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 2 Sep 2009 19:25:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q40g2000prh.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.43 Safari/530.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:172635 X-Mailman-Approved-At: Wed, 02 Sep 2009 16:03:05 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67773 Archived-At: i would like to highlight some phrases when a file is opened. So, i thought i put this in the first line: -*- eval-expression: (hi-lock-face-phrase-buffer "me:" 'red ) -*- however, the proper syntax for hi-lock-face-phrase-buffer seems to be: (hi-lock-face-phrase-buffer "me:" (defface hi-pink '((((background dark)) (:background "red" :foreground "black")) (t (:background "red"))) "Face for hi-lock mode." :group 'hi-lock-faces) ) can it be simpler? I just need to color the text and background. i have other people's names i need to color red, blue. Thanks. Xah =E2=88=91 http://xahlee.org/ =E2=98=84