From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: about colors Date: Tue, 21 Jun 2011 07:22:09 -0700 Message-ID: <7F012D599D5A44B2BF9E56C754BABEF4@us.oracle.com> References: <4DFD0A8F.2050103@sergio.spb.ru> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1308668083 15486 80.91.229.12 (21 Jun 2011 14:54:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Jun 2011 14:54:43 +0000 (UTC) To: "'sergio'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 21 16:54:38 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QZ2Lc-0007bS-RJ for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Jun 2011 16:54:36 +0200 Original-Received: from localhost ([::1]:39004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ2Lb-0003mx-9J for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Jun 2011 10:54:35 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ1qa-0003ts-SR for help-gnu-emacs@gnu.org; Tue, 21 Jun 2011 10:22:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZ1qY-0002vh-2n for help-gnu-emacs@gnu.org; Tue, 21 Jun 2011 10:22:32 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:44599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ1qX-0002vP-LT for help-gnu-emacs@gnu.org; Tue, 21 Jun 2011 10:22:29 -0400 Original-Received: from rtcsinet21.oracle.com (rtcsinet21.oracle.com [66.248.204.29]) by rcsinet10.oracle.com (Switch-3.4.4/Switch-3.4.2) with ESMTP id p5LEMNWC032359 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 21 Jun 2011 14:22:25 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by rtcsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p5LEMKHj009347 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 21 Jun 2011 14:22:22 GMT Original-Received: from abhmt101.oracle.com (abhmt101.oracle.com [141.146.116.53]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p5LEMD6p004957; Tue, 21 Jun 2011 09:22:13 -0500 Original-Received: from dradamslap1 (/10.159.50.205) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 21 Jun 2011 07:22:12 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4DFD0A8F.2050103@sergio.spb.ru> Thread-Index: Acwun9jdiUnsgkjYTT+CZtBdCeNRBgBc6F6Q X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: rtcsinet21.oracle.com [66.248.204.29] X-CT-RefId: str=0001.0A090208.4E00A922.0002:SCFSTAT5015188, ss=1, re=-4.000, fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.121 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:81387 Archived-At: > how to find all color that I should define? You don't really define colors. You choose them (a) as attributes for faces (foreground, background, over/underlines, boxing,...) and (b) as frame backgrounds/foregrounds. Learn about faces: (1) Emacs manual, node `Faces', (2) http://www.emacswiki.org/emacs/Face Command `list-faces-display' shows the existing faces. You can use command `customize-face' to modify any of them. If you use Icicles then `customize-face' and other face-choosing commands show you the candidate face names in their own faces (wysiwyg). You can filter the names using patterns. Command `list-colors-display' shows the named colors you can use (e.g. for changing face attributes). Be aware that in addition to named colors in Emacs you can also use any RGB hex code (as in HTML) instead of a color name - e.g. #C847D8FEFFFF (an unnamed light blue). The available colors go way beyond those that are named. If you use Icicles then command `icicle-read-color' shows you colored color-name candidates (wysiwyg) - like `list-colors-display' with filtering and completion. You can sort the candidates in various ways, including by color component strength (hue, saturation, brightness, R, G, B) and color distance (HSV, RGB). http://www.emacswiki.org/emacs/Icicles_-_Screenshots#icicle-read-color See also Facemenu+. http://www.emacswiki.org/emacs/FaceMenuPlus See also ColorPalette and Do Re Mi for choosing/defining colors. http://www.emacswiki.org/emacs/ColorPalette http://www.emacswiki.org/emacs/DoReMi Do Re Mi has commands for incrementally modifying color components. It has commands for doing this to the foreground/background of particular faces or frames and commands for doing this to all faces or all frames together. Incrementally modify color components individually (red, green, blue, hue, saturation/purity, value/brightness). Use the all-faces/frames modifying commands to, e.g., lighten, brighten, subdue, contrast, make more blue, etc. all faces or frames at once. Then make individual face adjustments to finish off. Icicles also has commands for incrementally modifying frame foreground/background colors. > What is the right way for creating theme for emacs? Others have spoken about this. Use any of the various tools mentioned above and by others to change your Emacs appearance the way you want (tweak faces, frame colors), then save that appearance as a new color theme. You can start from an existing theme and modify that appearance (certain faces, all faces together, etc.). You can use Icicles command `icicle-color-theme' to browse among existing themes, picking specific theme names using completion and pattern filtering or cycling among some or all. Return to the theme or setup you started with or keep one that you liked. You can also use command `doremi-color-themes+' to cycle among color themes. C-g restores the theme/setup you started with. For more info about color themes: http://www.emacswiki.org/emacs/ColorTheme