From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Morten Leander Petersen Newsgroups: gmane.emacs.help Subject: Re: Transient mark mode Date: Tue, 18 Oct 2011 10:16:14 +0200 Message-ID: <87ipnm7m0h.fsf@gmail.com> References: <8739esj6vb.fsf@gmail.com> <4E9C5117.2000205@dogan.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1318925801 13986 80.91.229.12 (18 Oct 2011 08:16:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 18 Oct 2011 08:16:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 18 10:16:37 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 1RG4qi-0001jg-Rg for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Oct 2011 10:16:36 +0200 Original-Received: from localhost ([::1]:45217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RG4qi-0004er-3j for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Oct 2011 04:16:36 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RG4qc-0004ea-KL for help-gnu-emacs@gnu.org; Tue, 18 Oct 2011 04:16:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RG4qb-0005Mu-OK for help-gnu-emacs@gnu.org; Tue, 18 Oct 2011 04:16:30 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:54695) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RG4qb-0005Mj-In for help-gnu-emacs@gnu.org; Tue, 18 Oct 2011 04:16:29 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RG4qZ-0001hR-RG for help-gnu-emacs@gnu.org; Tue, 18 Oct 2011 10:16:27 +0200 Original-Received: from pool-21.imf.au.dk ([130.225.20.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Oct 2011 10:16:27 +0200 Original-Received: from mortenlp2 by pool-21.imf.au.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Oct 2011 10:16:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-21.imf.au.dk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:xKqO74HjLhOiNbPZHd+4MGXBw9s= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:82609 Archived-At: Deniz Dogan writes: > On 2011-10-17 11:38, Morten Leander Petersen wrote: >> Hi. >> >> I use a couple of modes which require transient mark mode to be enabled >> (yasnippet for one). However, I don't like the highlighting of the >> region. So is there a way to get rid of this highlighting without having >> to disable transient mark mode? >> > > Just remove the `background' property from the `region' face using > customize: > > (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. > '(region ((t nil)))) > > For some reason this did not work for me. However if I did it manually it worked, i.e. I put the following in my .emacs (set-face-foreground 'region nil) (set-face-background 'region nil) and that did the trick. Thank you for the help. -- /Morten