From: Emre Sevinc <emres@bilgi.edu.tr>
Subject: Re: How to produce the effect of * and # of VIM in Emacs?
Date: Wed, 27 Jul 2005 20:29:37 +0300 [thread overview]
Message-ID: <873bq0cg3i.fsf@ileriseviye.org> (raw)
In-Reply-To: mailman.1903.1122483641.20277.help-gnu-emacs@gnu.org
Micha Feigin <michf@post.tau.ac.il> writes:
> On Wed, 27 Jul 2005 17:09:19 +0100
> Marc Tfardy <m-t-o___CUT_IT___@web.de> wrote:
>
>> Emre Sevinc schrieb:
>> > Hello,
>> >
>> > What I'm trying to learn is how to produce the effect
>> > of * and # of VIM in Emacs.
>> >
>> > I know I can make something like that:
>> >
>> > M-b C-s C-w
>> >
>> > I'd like to learn how can I make it with a single keystroke
>> > (key combination) or write some elisp function that
>> > does so.
>> >
>> > Any suggestions?
>>
>> One stupid question - what do * and # in VIM?
>>
>
> Search forward and backward for the word under the cursor
>
> You can make a macro from this sequence and bind it to a key
I tried that by pressing C-x ( and then pressing M-b C-s C-w
and then C-x ) and Emacs said that a macro is defined, then I
came to the middle of the word pressed C-x e to execute the
macro but the cursor just stayed there, nothing happened.
Any ideas why that doesn't work? Is it related to I-search's
being interactive and interfering with the macro creation process?
> You may also want to have a look at the highlight-regexp package at
> http://www.geekware.de/software/emacs/
Very nice package! It does %99 of what I have described in
my original post.
One question: I have tried the functions in that package and
it does the highlighting but once all the occurences of word
are highlighted how can I jump to them as: next occurence, next occurence,
..., ?
--
Emre Sevinc
eMBA Software Developer Actively engaged in:
http:www.bilgi.edu.tr http://ileriseviye.org
http://www.bilgi.edu.tr http://fazlamesai.net
Cognitive Science Student http://cazci.com
http://www.cogsci.boun.edu.tr
next prev parent reply other threads:[~2005-07-27 17:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-27 14:35 How to produce the effect of * and # of VIM in Emacs? Emre Sevinc
2005-07-27 16:09 ` Marc Tfardy
2005-07-27 16:47 ` Micha Feigin
[not found] ` <mailman.1903.1122483641.20277.help-gnu-emacs@gnu.org>
2005-07-27 17:29 ` Emre Sevinc [this message]
2005-07-27 20:17 ` kgold
2005-07-27 20:52 ` Emre Sevinc
2005-07-27 17:25 ` Vagn Johansen
2005-07-27 21:02 ` Emre Sevinc
2005-07-27 17:41 ` Kevin Rodgers
[not found] ` <mailman.1914.1122487618.20277.help-gnu-emacs@gnu.org>
2005-07-27 18:34 ` Emre Sevinc
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=873bq0cg3i.fsf@ileriseviye.org \
--to=emres@bilgi.edu.tr \
/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).