[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: highlight select whole word when in the middle shortcut
From: |
Robert Knighten |
Subject: |
Re: highlight select whole word when in the middle shortcut |
Date: |
Wed, 08 Dec 2010 15:07:59 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Kevin Rodgers <kevin.d.rodgers@gmail.com> writes:
> Colin S. Miller wrote:
>> 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)
>
> M-x mark-word
That just marks to the end of the word.
--
Robert L. Knighten
RLK@knighten.org
- Re: highlight select whole word when in the middle shortcut,
Robert Knighten <=