[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: highlight select whole word when in the middle shortcut
From: |
Colin S. Miller |
Subject: |
Re: highlight select whole word when in the middle shortcut |
Date: |
Tue, 04 May 2010 15:44:02 -0000 |
User-agent: |
Mozilla-Thunderbird 2.0.0.24 (X11/20100328) |
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.