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: how to turn custome-set-faces to plain elisp? Date: Tue, 3 Mar 2009 19:27:09 -0800 (PST) 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 1236245885 16840 80.91.229.12 (5 Mar 2009 09:38:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Mar 2009 09:38:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 05 10:39:22 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 1LfA30-0005u2-8C for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Mar 2009 10:39:22 +0100 Original-Received: from localhost ([127.0.0.1]:46077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfA1e-0005Dn-Vv for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Mar 2009 04:37:59 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!k9g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 39 Original-NNTP-Posting-Host: 24.6.175.142 Original-X-Trace: posting.google.com 1236137229 27746 127.0.0.1 (4 Mar 2009 03:27:09 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 4 Mar 2009 03:27:09 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k9g2000prh.googlegroups.com; posting-host=24.6.175.142; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:167273 comp.emacs:97918 X-Mailman-Approved-At: Thu, 05 Mar 2009 04:35:00 -0500 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:62612 Archived-At: 2 questions. (1) In emacs's init file, if i have (custom-set-variables '(xyz t) ) how do i know if xyz is set to to t, or is it function with first arg t? looking into this, it's probably all variables. But then does that mean all minor modes has a var, such that when set, it turns on the minor mode on automatically? Second question is, in emacs init file: (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(completions-first-difference ((t (:inherit bold :foreground "red")))) '(pp^L-highlight ((((type x w32 mac graphic) (class color)) (:underline "maroon")))) '(show-paren-match ((((class color) (background light)) (:background "azure2"))))) How do i do the same in elisp without using custom-set-faces? Prob some set-face-*, but not sure which one. Thanks. Xah =E2=88=91 http://xahlee.org/ =E2=98=84