[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there an easier way to jump to the same word?
From: |
Damien Wyart |
Subject: |
Re: Is there an easier way to jump to the same word? |
Date: |
Thu, 11 Apr 2013 09:57:19 +0200 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 |
> > Often times I find that I want to jump to another occurrence of the
> > word-under-point, almost always variables or functions. I end up
> > going to the beginning of the word with M-b, doing isearch-forward
> > with C-s, adding all the words until the full word is the search
> > term with C-w a bunch of times, and finally C-s to jump around to
> > other instances of it.
> > Is there a better way to do this?
* "Chris F.A. Johnson" <cfajohnson@gmail.com> in gnu.emacs.help:
> This is what I use:
> (defun current-word-search ()
> "search forward for word under cursor"
> (interactive)
> (word-search-forward (current-word)))
I was about to point OP to highlight-symbol.el, but your solution seems
simple and elegant.
A few links anyway:
http://emacswiki.org/emacs/SearchAtPoint
http://stackoverflow.com/questions/10373118/vim-like-next-previous-word-at-point-in-emacs
http://www.emacswiki.org/emacs/HighlightSymbol
http://nschum.de/src/emacs/highlight-symbol/
https://github.com/nschum/highlight-symbol.el
--
DW
- Re: Is there an easier way to jump to the same word?, (continued)