From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emre Sevinc Newsgroups: gmane.emacs.help Subject: Re: How to produce the effect of * and # of VIM in Emacs? Date: Wed, 27 Jul 2005 21:34:35 +0300 Organization: Istanbul Bilgi University Message-ID: <87u0igayis.fsf@ileriseviye.org> References: <87ack8uxj0.fsf@ileriseviye.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1122489488 24402 80.91.229.2 (27 Jul 2005 18:38:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Jul 2005 18:38:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 27 20:38:03 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dxqms-0006Fs-KB for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jul 2005 20:37:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DxqpH-0007fn-Bb for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jul 2005 14:40:19 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-X-Trace: individual.net 8j6jrNEB5kqsHvyAcIUF4AmV9aZ1wtRf6TQhZx78/Tvh1/QigG User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:wDec5EK2hO6JRCUyy+ierFS67kI= Original-Xref: shelby.stanford.edu gnu.emacs.help:132705 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28228 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28228 Kevin Rodgers 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