From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: how to temporarily highlight/unhighlight a word under cursor? Date: Wed, 15 Aug 2007 19:30:12 +0200 Message-ID: References: <1187131455.670602.62230@k79g2000hse.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187199037 14899 80.91.229.12 (15 Aug 2007 17:30:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Aug 2007 17:30:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 15 19:30:34 2007 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 1ILMhP-00021p-P9 for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Aug 2007 19:30:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILMhP-0007F0-8Q for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Aug 2007 13:30:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ILMhB-0007Et-KP for help-gnu-emacs@gnu.org; Wed, 15 Aug 2007 13:30:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ILMhA-0007Eh-Fn for help-gnu-emacs@gnu.org; Wed, 15 Aug 2007 13:30:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILMhA-0007Ee-CR for help-gnu-emacs@gnu.org; Wed, 15 Aug 2007 13:30:12 -0400 Original-Received: from fmmailgate02.web.de ([217.72.192.227]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ILMhA-0001rH-1x for help-gnu-emacs@gnu.org; Wed, 15 Aug 2007 13:30:12 -0400 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate02.web.de (Postfix) with ESMTP id 372BF94316A5 for ; Wed, 15 Aug 2007 19:30:10 +0200 (CEST) Original-Received: from [77.128.238.78] (helo=wednesday) by smtp06.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.108 #197) id 1ILMh8-0001D6-00 for help-gnu-emacs@gnu.org; Wed, 15 Aug 2007 19:30:10 +0200 In-Reply-To: <1187131455.670602.62230@k79g2000hse.googlegroups.com> (Leo Hou's message of "Tue\, 14 Aug 2007 15\:44\:15 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (darwin) X-Sender: n_schumacher@web.de X-Provags-ID: V01U2FsdGVkX1+6mNvWTD/Z9bKf4EXdSqoNOlBT6H5SFsFBjM0U 1iEJ5sAYMQWDhF7TPqeSm/bO9aIzckNTAB1JWSbBH7T92yBkws a6LfK9PwTTfSCPQkxLrg== X-Detected-Kernel: Linux 2.4-2.6 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:46572 Archived-At: "Leo.Hou" wrote: > I wonder if it is possible to create a macro or function in the .emacs > file and assign a shortcut to it to automatically highlight the > current word under cursor to the default "hi-yellow" color. I did once. It's available here: http://nschum.de/src/emacs/highlight-symbol/ regards, Nikolaj Schumacher