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: Changing color of transient mark Date: Thu, 12 Feb 2015 11:03:01 -0800 (PST) Message-ID: <239cd621-f964-4aff-9678-ed9bb551ee4c@default> References: <87lhk4jnuz.fsf@engels.histomat.net> <87egpvccig.fsf@engels.histomat.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1423767814 3245 80.91.229.3 (12 Feb 2015 19:03:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Feb 2015 19:03:34 +0000 (UTC) To: Haines Brown , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 12 20:03:22 2015 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 1YLz2n-0005m6-Jn for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Feb 2015 20:03:21 +0100 Original-Received: from localhost ([::1]:51760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLz2m-00051n-U7 for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Feb 2015 14:03:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLz2c-00051R-1J for help-gnu-emacs@gnu.org; Thu, 12 Feb 2015 14:03:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLz2Y-000294-1Z for help-gnu-emacs@gnu.org; Thu, 12 Feb 2015 14:03:09 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:45726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLz2X-00028q-Qf for help-gnu-emacs@gnu.org; Thu, 12 Feb 2015 14:03:05 -0500 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t1CJ33kf019956 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 Feb 2015 19:03:04 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t1CJ334k010954 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Feb 2015 19:03:03 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id t1CJ32ri029113; Thu, 12 Feb 2015 19:03:02 GMT In-Reply-To: <87egpvccig.fsf@engels.histomat.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:102683 Archived-At: > >> I'm running emacs 24.4.1, and the transient mark color is a very dark > >> blue. This makes the highlighted text hard to read. > >> Id like to redefine the background color something like this: > >> > >> ((transient-mark-mode 1) > >> (set-background-color "mistyrose") > >> (set-foreground-color "firebrick")) >=20 > > See the function `set-face-attribute'. >=20 > Because all my emacs sessions have the -q option and use their own init > files, I'm unable to save the highlight background color. >=20 > What lisp code would define the background within init files? I already answered that: `M-x customize-face region' and save your changes. That inserts the necessary Lisp code in your init file, or (better) if you have defined `custom-file' then into your `custom-file'. If you try it then you will see what Lisp code to use. ;-)