From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Haines Brown Newsgroups: gmane.emacs.help Subject: Re: Changing color of transient mark Date: Thu, 12 Feb 2015 15:08:09 -0500 Message-ID: <871tluopue.fsf@engels.histomat.net> 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 X-Trace: ger.gmane.org 1423771823 16652 80.91.229.3 (12 Feb 2015 20:10:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Feb 2015 20:10:23 +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 Feb 12 21:10:20 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 1YM05c-0007wn-9l for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Feb 2015 21:10:20 +0100 Original-Received: from localhost ([::1]:51926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YM05b-0008LB-J6 for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Feb 2015 15:10:19 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 12 Feb 2015 14:08:09 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:qGvyywhEn/EksS1C+Si3lulbhB8= Original-Lines: 36 X-Usenet-Provider: http://www.giganews.com Original-X-Trace: sv3-Ninv7yVmoicsB4GsrDM+xNGcl3iLwUYCcYXjq2eOlQOuLwOAXqhQKf9AzOSJDBWb+J1yQRp4tgZSSzm!FThGZJ2nwYj+G4Z1ygq8Y7sITb1ulDxsAIxJPOxKhMtxY2+3YOgYKOWudFEYKw== Original-X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2642 Original-Xref: usenet.stanford.edu gnu.emacs.help:210408 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:102685 Archived-At: Drew Adams writes: >> >> 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")) >> >> > See the function `set-face-attribute'. >> >> Because all my emacs sessions have the -q option and use their own init >> files, I'm unable to save the highlight background color. >> >> 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. ;-) Thanks. I apparenly had not saved customization or missed the relevant lines in the resulting init file. Things now working in an emacs session not using that init file and with the following stanza: (custom-set-faces '(default ((t (:family "Courier 10 Pitch" :foundry "bitstream" \ :slant normal :weight normal :height 122 :width normal)))) '(highlight ((t (:background "wheat")))) '(region ((t (:background "wheat" :distant-foreground \ "gtk_selection_fg_color")))) )