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: Re: Turn off selection coloring Date: Sun, 20 Sep 2009 14:49:28 -0700 (PDT) Organization: http://groups.google.com Message-ID: <87b0bc35-2c8a-4076-988b-e90f29f770a2@x6g2000prc.googlegroups.com> References: 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 1253569976 15854 80.91.229.12 (21 Sep 2009 21:52:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Sep 2009 21:52:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 21 23:52:49 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 1MpqoS-0002Vb-HE for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Sep 2009 23:52:48 +0200 Original-Received: from localhost ([127.0.0.1]:53796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MpqoR-00018K-To for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Sep 2009 17:52:47 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!x6g2000prc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 67 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1253483368 30459 127.0.0.1 (20 Sep 2009 21:49:28 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 20 Sep 2009 21:49:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x6g2000prc.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.21 Safari/532.0, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:173213 comp.emacs:99218 X-Mailman-Approved-At: Mon, 21 Sep 2009 17:48:47 -0400 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:68355 Archived-At: On Sep 15, 12:04 pm, Harry Putnam wrote: > I'll admit I only spent about 10 minutes looking for this answer... I > did > > M-x apropos selection > > M-x customize-apropos " ditto " > > C-h -i m emacs i select (and walked thru them) > > I didn't find out how to turn off the blue color that appears when > mark is set, and I scroll. Indicating a selected region. The one that > requires two spc bar hits to turn off. > > I liked the old way... with no color and find myself very often > accidentally coloring a region... > > It is nice when I *intend* to select a region but too often I > accidentally select.... no doubt some kind of poor typing habit > causing it but it means this happens very often for me. > > I don't remember having trouble knowing what I selected... when > intentionally selecting a region before we had that highlight, so I > think I want it off. > > Can anyone provide a better searching clue? your answer is here: =E2=80=A2 New Features in Emacs 23 http://xahlee.org/emacs/emacs23_features.html textual excerpt (html table format screted...): Text Selection Highlighted Text selection is highlighted by default. This is done by having transient-mark-mode on by default. To turn it off, put the following in your emacs init file: (transient-mark-mode 0) ; 1 for on, 0 for off If you leave transient-mark-mode on, now several emacs commands automatically apply to the text selection when text are selected, else they work on the current word or line. These commands are: Commands That Automatically Apply To Selection purpose emacs command name shortcut hard wrap lines fill-paragraph Alt+q indenting code indent-for-tab-command or other Tab check spelling ispell-word Alt+$ Also, now you can hold down the Shift key then press arrows key to select text. To turn this off, put: (setq shift-select-mode nil) ; =E2=80=9Ct=E2=80=9D for true, =E2=80=9Cnil= =E2=80=9D for false However, by default, pressing delete key will not delete the selected text. If you want this, put: (delete-selection-mode 1) ; make typing override text selection Xah =E2=88=91 http://xahlee.org/ =E2=98=84