From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: highlight select whole word when in the middle shortcut Date: Mon, 05 Apr 2010 14:40:50 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <4bb9e7f7$0$280$14726298@news.sunsite.dk> References: <8481edba-6131-49c8-9d6c-7b9cb1b8fd9f@q16g2000yqq.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1273002927 26888 80.91.229.12 (4 May 2010 19:55:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 19:55:27 +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 May 04 21:55:26 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O9ODC-0006uv-4n for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 21:55:22 +0200 Original-Received: from localhost ([127.0.0.1]:43337 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9ODB-0007c2-KI for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 15:55:21 -0400 Original-Path: usenet.stanford.edu!goblin1!goblin2!goblin.stu.neva.ru!news.net.uni-c.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100328) Original-Newsgroups: gnu.emacs.help In-Reply-To: <8481edba-6131-49c8-9d6c-7b9cb1b8fd9f@q16g2000yqq.googlegroups.com> Original-Lines: 25 Original-NNTP-Posting-Host: 62.56.55.133 Original-X-Trace: news.sunsite.dk DXC=QSlgY8@U5nfN2]LRcf6HDcYSB=nbEKnkkVQfQk22Xdg`5fdD?L8VmBhOOn[7LY1L_eQScK68eBi5g; QNS\SSPXng=`B>8HMEIDhN]K9C41bZVoXJfbLS<_>gh Original-X-Complaints-To: staff@sunsite.dk Original-Xref: usenet.stanford.edu gnu.emacs.help:177640 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:73113 Archived-At: mouezapeter wrote: > Hi, > If I am in the middle of the word "deduction", is there a shortcut to > highlight,select the hole word ? Hi, If you are using a GUI, then double-click on the word to select it. Otherwise, add this to your .emacs, restart, and then press C-x w HTH, Colin S. Miller (defun select-word-at-point () (interactive) (let ((p (bounds-of-thing-at-point 'word))) (set-mark (car p)) (exchange-point-and-mark) (set-mark (cdr p)) )) (global-set-key '[(control x) (w)] 'select-word-at-point) -- Replace the obvious in my email address with the first three letters of the hostname to reply.