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: highlighter, i.e. yellow marker functionality Date: Wed, 1 Oct 2014 12:41:50 -0700 (PDT) Message-ID: References: <31062c$97skh2@ironport10.mayo.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1412192547 13920 80.91.229.3 (1 Oct 2014 19:42:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2014 19:42:27 +0000 (UTC) To: "Buchs, Kevin J." , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 01 21:42:21 2014 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 1XZPn1-0005Ta-Hc for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Oct 2014 21:42:19 +0200 Original-Received: from localhost ([::1]:58366 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZPn1-0006MO-7S for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Oct 2014 15:42:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZPmj-0006MG-8V for help-gnu-emacs@gnu.org; Wed, 01 Oct 2014 15:42:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZPmb-0006BO-L2 for help-gnu-emacs@gnu.org; Wed, 01 Oct 2014 15:42:01 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:43399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZPmb-0006BI-DD for help-gnu-emacs@gnu.org; Wed, 01 Oct 2014 15:41:53 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s91Jfp8x027748 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 1 Oct 2014 19:41:52 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s91Jfpa9016886 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 1 Oct 2014 19:41:51 GMT Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s91Jfpel016865; Wed, 1 Oct 2014 19:41:51 GMT In-Reply-To: <31062c$97skh2@ironport10.mayo.edu> 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: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 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:100212 Archived-At: > Wondering if anyone has written or can recommend a function > (built-in/add-on) that would give the ability similar to a yellow > marker, e.g. where MB1 down would set the background color of all > text > over which the pointer passes. Bonus points for not marking > beginning of > line and end of line white space, just like one would do with a real > marker. Thanks. Yes, see library highlight.el. http://www.emacswiki.org/HighlightLibrary In particular, `hlt-highlighter', which is bound by default to `C-x mouse-2', and `hlt-eraser', which is bound by default to `C-x S-mouse-2'.