help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I highlight word at point?


From: Scott Frazer
Subject: Re: How do I highlight word at point?
Date: Thu, 30 Oct 2008 09:57:03 -0400
User-agent: Thunderbird 2.0.0.17 (Windows/20080914)

Francis Moreau wrote:
Giorgos Keramidas <keramida@ceid.upatras.gr> writes:

I think what you asked may be done by typing `M-b M-@'.

BTW, any ways to make this works for such words:

                            this-is-a-word


Here's what I use:

(defun select-symbol-under-point ()
  "Select the symbol under point."
  (interactive)
  (skip-syntax-forward "w_")
  (set-mark (point))
  (skip-syntax-backward "w_")
  (exchange-point-and-mark))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]