From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jonas Steverud Newsgroups: gmane.emacs.help Subject: Re: A few simple questions Date: Sat, 10 May 2003 08:50:18 +0200 Organization: A customer of B2 Bredbandsbolaget (www.bredband.com) Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052549462 4655 80.91.224.249 (10 May 2003 06:51:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 10 May 2003 06:51:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat May 10 08:51:01 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 19EOCD-0001Cn-00 for ; Sat, 10 May 2003 08:51:01 +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 19EOBp-0006jX-03 for gnu-help-gnu-emacs@m.gmane.org; Sat, 10 May 2003 02:50:37 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1!bredband!newsspool1.bredband.com!news2.bredband.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Mail-Copies-To: never User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.2 (darwin) Cancel-Lock: sha1:V2zc5yL+lTatxeUjlcBExvY8hs4= Original-Lines: 29 Original-NNTP-Posting-Host: 213.114.83.171 Original-X-Complaints-To: news-abuse@bredband.com Original-X-Trace: news2.bredband.com 1052549250 213.114.83.171 (Sat, 10 May 2003 08:47:30 CEST) Original-NNTP-Posting-Date: Sat, 10 May 2003 08:47:30 CEST Original-Xref: shelby.stanford.edu gnu.emacs.help:113007 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:9502 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9502 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? Since I never used the eVIl one I don't know exactly what f pretends to do, but according to your description, I would say to look for isearch-forward in Emacs. That is; C-s a to look for the next a and then repeat with C-s. C-r is the same but backwards. See the info node Searching and Replacement in Emacs' info file. C-h i d m emacs RET g search RET > 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...! Do you want to do that for all your files, i.e. forever, or for some files? -- ( http://hem.bredband.net/steverud ! Wei Wu Wei ) ( Meaning of U2 Lyrics, Roleplaying ! To Do Without Do )