From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Friedrich Dominicus Newsgroups: gmane.emacs.help Subject: Re: A few simple questions Date: 10 May 2003 09:00:51 +0200 Organization: Q Software Solutions GmbH Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87n0hv9tgc.fsf@fbigm.here> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052550121 5810 80.91.224.249 (10 May 2003 07:02:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 10 May 2003 07:02:01 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat May 10 09:01:58 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19EOMo-0001VR-00 for ; Sat, 10 May 2003 09:01:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19EOM7-0001ee-03 for gnu-help-gnu-emacs@m.gmane.org; Sat, 10 May 2003 03:01:15 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.telebyte.nl!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-X-Trace: news.t-online.com 1052549670 06 32360 acN4Eo5XbUAHgU 030510 06:54:30 Original-X-Complaints-To: abuse@t-online.com X-ID: ZKs54yZG8erDe06krA7YVm6M1Ax6IUCzCz-uAIbuvMAt1MMtOhdaYn User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Native Windows TTY Support) Original-Xref: shelby.stanford.edu gnu.emacs.help:113008 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9503 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9503 Wang Yin writes: > Hi, > > I have a few simple questions to ask about Emacs. They are so simple, > yet it seems that I can't find them in the manual and FAQ: > > 1. How can I do something like f command in vi? When I'm looking at a > line, I want to move to a charater, say 'a'. How can I do something > like "fa" in Emacs, and how to I repeat this command to go to > following a's? C-s a for repeated searches just type C-s again > > 2. How do I move like "W" in vi. That is, move to the next white space > delimited "Word"? M-f alternatively for more word C-u 3 M-f > > 3. How do I change DOS lineend file into UNIX lineend file quickly? I > don't like to C-x RET c ....-unix C-x C-f...! M-x replace-regexp C-q RET$ RET RET You can save it as a macro, name it and just call the macro. Regards Friedrich