[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Elisp code to choose a region covering a word
From: |
Tassilo Horn |
Subject: |
Re: Elisp code to choose a region covering a word |
Date: |
Thu, 18 Nov 2010 12:45:02 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
Hi Soichi,
this should do the trick:
--8<---------------cut here---------------start------------->8---
(defun mark-next-word ()
(interactive)
(skip-chars-forward "[:space:]")
(set-mark (point))
(forward-word))
--8<---------------cut here---------------end--------------->8---
Bye,
Tassilo