* Re: Help for using emacs.
2003-06-25 17:47 Help for using emacs Charlie
@ 2003-06-25 19:19 ` Harshdeep S Jawanda
2003-06-25 19:46 ` Roodwriter
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Harshdeep S Jawanda @ 2003-06-25 19:19 UTC (permalink / raw)
Cc: help-gnu-emacs
Charlie wrote:
>1. User starts emacs and opens more than one file. What is way to
>switch from one to another. The way that I am using now, which is not
>the quickest way, is "Ctrl X", "Ctrl B" to show the files in the
>buffer and then pick the file that I am looking for.
>
You can use C-x b (do you remember the notation :-)?) to switch between
buffers. When you invoke this command, a default buffer (the most
recently visited one) name will be visible. Hitting RET at this point
will take you to that buffer. Alternatively, you can enter the name of
the buffer you really want to switch to and then hit RET.
>2. User open a huge text file, what is the easist way to go to the end
>of the file, not just keep typing "Ctrl -v" or "M-x end-of-buffer",
>that I have to type that many letters to make it happen. And also if I
>want to remove a large chunk of it, I know that we can highlight that
>chunk from the beginning to the end, then type "Ctrl K" to remove it.
>How ?
>
Use M-> to go to the end and M-< to go to the beginning.
>3. In a file to replace a keyword, I can do either "global replace" or
>"replace it one after another". Can someone tells me how to do it in
>the former way ?
>
By "global replace", do you mean non-interactive replace? You can do M-%
searchTerm RET and when asked about whether to replace a particular
occurence, hit "!" (the exclamation mark). This will automatically
replace all occurence without asking you again.
Or you can simply do M-x replace-string.
--
Harshdeep S Jawanda
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help for using emacs.
2003-06-25 17:47 Help for using emacs Charlie
2003-06-25 19:19 ` Harshdeep S Jawanda
@ 2003-06-25 19:46 ` Roodwriter
2003-06-25 19:54 ` Kevin Rodgers
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Roodwriter @ 2003-06-25 19:46 UTC (permalink / raw)
Charlie wrote:
> Hi Guys,
> I used to use the emacs a lot when I was in college, and now I want to
> pick it up after years. The emacs that I am using on Solaris is of
> version: Xemacs 21.4(patch 9) and these things are what I try to
> recover
>
> 1. User starts emacs and opens more than one file. What is way to
> switch from one to another. The way that I am using now, which is not
> the quickest way, is "Ctrl X", "Ctrl B" to show the files in the
> buffer and then pick the file that I am looking for.
I use Linux. Hopefully, it's the same.
C-x b. Don't use CTRL on the second b.
>
> 2. User open a huge text file, what is the easist way to go to the end
> of the file, not just keep typing "Ctrl -v" or "M-x end-of-buffer",
> that I have to type that many letters to make it happen. And also if I
> want to remove a large chunk of it, I know that we can highlight that
> chunk from the beginning to the end, then type "Ctrl K" to remove it.
> How ?
>
The keybindings have changed. It's now just like most programs. C-end.
C-home if you want to go to the beginning.
> 3. In a file to replace a keyword, I can do either "global replace" or
> "replace it one after another". Can someone tells me how to do it in
> the former way ?
>
M-x replace-regexp. This is an all-or-nothing, though. M-x query-replace
will ask you as you go.
> 4. Is there a website, menu,that tells all the "TRICKY" commands of
> emacs ?
>
The Emacs website has a huge help file, but it can be tough slogging. I
found O'Reilley's "Learning GNU Emacs" very helpful. It's still in print
but it's somewhat out of date.
> 5. This is very common question I guess. Right now cross all the
> platforms, the most popular edit tools being used are "vi" and
> "emacs". I know a little about vi, which is used more common than
> emacs!? So sometimes when I was trying to edit a file in my
> colleague's machine, I find myself in a situation that emacs is not
> available!!!
> I am just wondering is there any other tools that I can use, or vi is
> the only option.
>
Never used Solaris. Sorry.
>
> thanks a lot!
>
>
>
> CJI
--
Author of "Linux for Non-Geeks--Clear-eyed Answers for Practical Consumers"
and "Boring Stories from Uncle Rod." Both are available at
http://www.rodwriterpublishing.com/index.html
To reply by e-mail, take the extra "o" out of my e-mail address. It's to
confuse spambots, of course.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help for using emacs.
2003-06-25 17:47 Help for using emacs Charlie
2003-06-25 19:19 ` Harshdeep S Jawanda
2003-06-25 19:46 ` Roodwriter
@ 2003-06-25 19:54 ` Kevin Rodgers
2003-06-25 20:18 ` Kai Großjohann
2003-06-28 17:36 ` Mario Domgörgen
4 siblings, 0 replies; 6+ messages in thread
From: Kevin Rodgers @ 2003-06-25 19:54 UTC (permalink / raw)
Charlie wrote:
> 2. User open a huge text file, what is the easist way to go to the end
> of the file, not just keep typing "Ctrl -v" or "M-x end-of-buffer",
> that I have to type that many letters to make it happen.
M->
> And also if I
> want to remove a large chunk of it, I know that we can highlight that
> chunk from the beginning to the end, then type "Ctrl K" to remove it.
> How ?
C-w (not C-k)
> 3. In a file to replace a keyword, I can do either "global replace" or
> "replace it one after another". Can someone tells me how to do it in
> the former way ?
M-x replace-string
> 5. This is very common question I guess. Right now cross all the
> platforms, the most popular edit tools being used are "vi" and
> "emacs". I know a little about vi, which is used more common than
> emacs!? So sometimes when I was trying to edit a file in my
> colleague's machine, I find myself in a situation that emacs is not
> available!!!
vi may be installed by the OS vendor (as may emacs), but you can always
install emacs yourself.
If your colleague's machine is available on the network, you can edit
files there from your own machine: C-x C-f /user@host:/dir/file RET
(see the Remote Files section of the online Emacs manual).
> I am just wondering is there any other tools that I can use, or vi is
> the only option.
vi is not an option.
--
<a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help for using emacs.
2003-06-25 17:47 Help for using emacs Charlie
` (2 preceding siblings ...)
2003-06-25 19:54 ` Kevin Rodgers
@ 2003-06-25 20:18 ` Kai Großjohann
2003-06-28 17:36 ` Mario Domgörgen
4 siblings, 0 replies; 6+ messages in thread
From: Kai Großjohann @ 2003-06-25 20:18 UTC (permalink / raw)
cji_work@yahoo.com (Charlie) writes:
> 3. In a file to replace a keyword, I can do either "global replace" or
> "replace it one after another". Can someone tells me how to do it in
> the former way ?
query-replace asks you a question, hitting ? there gives you help and
tells you that ! might do something you like.
--
~/.signature
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help for using emacs.
2003-06-25 17:47 Help for using emacs Charlie
` (3 preceding siblings ...)
2003-06-25 20:18 ` Kai Großjohann
@ 2003-06-28 17:36 ` Mario Domgörgen
4 siblings, 0 replies; 6+ messages in thread
From: Mario Domgörgen @ 2003-06-28 17:36 UTC (permalink / raw)
cji_work@yahoo.com (Charlie) writes:
> 4. Is there a website, menu,that tells all the "TRICKY" commands of
> emacs ?
www.emacswiki.org
Mario
--
The Web site you seek
cannot be located but
endless others exist
^ permalink raw reply [flat|nested] 6+ messages in thread