all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Colin S. Miller" <no-spam-thank-you@csmiller.demon.co.uk>
To: help-gnu-emacs@gnu.org
Subject: Re: highlight select whole word when in the middle shortcut
Date: Mon, 05 Apr 2010 14:40:50 +0100	[thread overview]
Message-ID: <4bb9e7f7$0$280$14726298@news.sunsite.dk> (raw)
In-Reply-To: <8481edba-6131-49c8-9d6c-7b9cb1b8fd9f@q16g2000yqq.googlegroups.com>

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.


  reply	other threads:[~2010-04-05 13:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-05  7:09 highlight select whole word when in the middle shortcut mouezapeter
2010-04-05 13:40 ` Colin S. Miller [this message]
2010-05-07  4:20   ` Kevin Rodgers
     [not found]   ` <mailman.37.1273206036.9285.help-gnu-emacs@gnu.org>
2010-05-12  7:02     ` Robert Knighten
2010-05-12 11:32       ` Scott Frazer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='4bb9e7f7$0$280$14726298@news.sunsite.dk' \
    --to=no-spam-thank-you@csmiller.demon.co.uk \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.