From: kgold@watson.ibm.com (kgold)
Subject: Re: Searching a word that is defined by the position of the cursor ?
Date: 4 Nov 2003 22:25:21 GMT [thread overview]
Message-ID: <bo990h$f6i$3@news.btv.ibm.com> (raw)
In-Reply-To: mailman.3127.1067959363.21628.help-gnu-emacs@gnu.org
Hackl Heinz <Heinz.Hackl@austriamicrosystems.com> writes:
> I would like to switch from gvim to xemacs and I'm missing the following
> feature:
> In gvim CTRL-* highlights that word (and all identical words in the file)
> that has the cursor (in any position) on it.
> Is there a possibility to configure emacs to realize this function ?
> thanks and best regards
There are two parts:
To search for the word under the cursor: C-s C-w
To highlight all matches, look at ishl.el. For example:
(require 'ishl)
(ishl-mode t)
(setq-default ishl-cleanup nil)
To change the color of all occurrences after the first:
(set-face-foreground 'secondary-selection "antiquewhite1")
(set-face-background 'secondary-selection "Mediumblue")
Bonus:
Play with M-x occur and M-x igrep when you have time.
--
next prev parent reply other threads:[~2003-11-04 22:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3127.1067959363.21628.help-gnu-emacs@gnu.org>
2003-11-04 18:31 ` Searching a word that is defined by the position of the cursor ? Kevin Rodgers
2003-11-04 22:25 ` kgold [this message]
2003-11-04 22:53 ` Stefan Monnier
2003-11-04 15:21 Hackl Heinz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='bo990h$f6i$3@news.btv.ibm.com' \
--to=kgold@watson.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).