unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
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 21:34:35 +0300	[thread overview]
Message-ID: <87u0igayis.fsf@ileriseviye.org> (raw)
In-Reply-To: mailman.1914.1122487618.20277.help-gnu-emacs@gnu.org

Kevin Rodgers <ihs_4664@yahoo.com> writes:

> Emre Sevinc wrote:
>  > 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.
>
> Since you know the equivalent key sequence, it's just a macro:
>
> (global-set-key "*" "\M-b\C-s\C-w")

After reading your post I tried that by typing it
in scratch buffer and pressing C-j however whatever
macro it created, it did not work when I came over
a word and pressed that character.

Then I tried to unset it by using global-unset-key
in a similar way, it didn't give any error but
when I press that key it beeps and doesn't do anything,
I have also tried using the interactive form 
M-x global-unset-key and give that character as a
parameter, but nothing changed :(

How can I unset and be able to use it as before?

BTW, my GNU Emacs is version 21.3.1

Thanks in advance.


-- 
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

      parent reply	other threads:[~2005-07-27 18:34 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
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 [this message]

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=87u0igayis.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).