From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: defface not defining a face? Date: Wed, 12 Mar 2014 22:15:29 +0530 Message-ID: <87mwgvtlg6.fsf@gmail.com> References: <87ha771bye.fsf@yun.yagibdah.de> <87y50jyv43.fsf@yun.yagibdah.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1394643089 7858 80.91.229.3 (12 Mar 2014 16:51:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Mar 2014 16:51:29 +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 Mar 12 17:51:38 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WNmNV-00063U-7e for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Mar 2014 17:51:37 +0100 Original-Received: from localhost ([::1]:33607 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNmNU-0000Vq-Jq for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Mar 2014 12:51:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNmHR-0006aM-MA for help-gnu-emacs@gnu.org; Wed, 12 Mar 2014 12:45:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNmHI-0000Xw-9C for help-gnu-emacs@gnu.org; Wed, 12 Mar 2014 12:45:21 -0400 Original-Received: from mail-pb0-x234.google.com ([2607:f8b0:400e:c01::234]:51638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNmHI-0000Xi-2i for help-gnu-emacs@gnu.org; Wed, 12 Mar 2014 12:45:12 -0400 Original-Received: by mail-pb0-f52.google.com with SMTP id rr13so1348423pbb.11 for ; Wed, 12 Mar 2014 09:45:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=koWXwYm7Fh9w7y3SSwQpRJqD3zGOyWRzN4ns9iTCVJI=; b=TyHKhJDH+6YtRDbgK7Ng/+jyzeP+IRKpjH7XTHdEHJVM6IiaYxhj7ELKjlN+CZFUmA 7lujZS45ZZK/9H2aJPvPgiDdXJsBU/IEZ+3V0IejVedUmNJkjOJoxMtoOEp+gLuSwh4o 9cgyalo4dlTwW2UOa/houcr7PZRgJ5tj8VHH6/xYIfuQUOSXBUle2NgD4UkOcqVUSPJQ 0/P6Rw4zvghZYng9yg0LsnSdovuRGIbEVPqpKx8das5YVgmx8N0wpvmne694LgfC0qiV b7XeUnEz5e81CUTmQYHtoPJdKovN5oQdrJvMTCk2CpYfQD0bGDavZnnkDevHfPTfJnk6 nyGQ== X-Received: by 10.68.102.34 with SMTP id fl2mr6261974pbb.2.1394642710951; Wed, 12 Mar 2014 09:45:10 -0700 (PDT) Original-Received: from debian-6.05 ([115.242.134.91]) by mx.google.com with ESMTPSA id np9sm8691303pbc.31.2014.03.12.09.45.08 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Wed, 12 Mar 2014 09:45:10 -0700 (PDT) In-Reply-To: <87y50jyv43.fsf@yun.yagibdah.de> (lee@yun.yagibdah.de's message of "Sun, 09 Mar 2014 21:57:55 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c01::234 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96461 Archived-At: This one is right from my .emacs. The default values of highlight faces is not to my taste. I have some 8-9 faces which are defined like this. (defface highlight-1 '((((min-colors 88) (background dark)) (:background "yellow1" :foreground "black")) (((background dark)) (:background "yellow" :foreground "black")) (((min-colors 88)) (:background "yellow1")) (t (:background "yellow"))) "Default face for hi-lock mode." :group 'highlight-faces) (defface highlight-2 '((((background dark)) (:background "pink" :foreground "black")) (t (:background "pink"))) "Face for hi-lock mode." :group 'highlight-faces) (defface highlight-3 '((((min-colors 88) (background dark)) (:background "green1" :foreground "black")) (((background dark)) (:background "green" :foreground "black")) (((min-colors 88)) (:background "green1")) (t (:background "green"))) "Face for hi-lock mode." :group 'highlight-faces) (defvar hi-lock-face-regexp "\\`highlight-.*") (setq hi-lock-face-defaults ((lambda (regexp) "List of faces that match REGEXP." (delq nil (mapcar (lambda (f) (let ((s (symbol-name f))) (when (string-match regexp s) s))) (reverse (face-list))))) hi-lock-face-regexp))