No offense taken.  I think Emacs users are used to hearing it.  There are
three reasons I personally find it worthwhile to learn.  First and most
importantly, you don't need X to use all of its resources.  You can get as
much out of it from a terminal window as you can from X.  I usually use it
in X but quite frequently I need to do something from the terminal and get
to make use of its power.  The second is that you can split one buffer into
two parts.  One part on top can view any region of the document you are on
(or another document if you want) while the other views a different part of
the same buffer.  This means that changes to either the top portion or the
bottom get changed on the document.  It is like opening up two windows with
the same document and making changes to both and when you go to save them
all changes are recorded to the one document.  This is especially useful
when you have a long document of code and need to reference another part of
the document.  If you want to see how it works, open up a document in emacs
and use ctrl+x 2  make a change to the top part and use ctrl+x o to switch
between them.  Notice when you change one it changes both.  The third reason
is that it is faster to use the memorized key sequences if you know how to
type reasonably fast.  Moving your hands from the keyboard to move the mouse
takes time.  (Time that irritates me if I have to use it a lot).  Once you
get used to the key sequences you hate working without them.  I don't expect
everyone to feel it is necessary to memorize key maps to code, nor most
people for that matter.  However, if you do a lot of this stuff, memorizing
them in the beginning can pay off in the long run.
Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Julien Olivier
Sent: Saturday, March 22, 2003 6:21 PM
To: [EMAIL PROTECTED]
Subject: Re: A code editor with auto-indentation ?

> Search once = CTRL-S
> Search-next = CTRL-S again (repeat as needed).
>

Ah ! that's useful, and that works well. Thank you.

> Emacs actually doesn't use the X clipboard in the way you might think.
> Emacs has its own set of buffers, called the "kill ring."  The sequence of
> keystrokes that does what you want is:
>
> Write "Blah"
> Select "Blah"
> CTRL-W CTRL-Y (Cut and paste in place, i.e., copy))
> Write "This is a test"
> Select "test"
> CTRL-W CTRL-Y CTRL-Y (Cut "test", paste "test" (last cut), paste "Blah"
> instead (previous cut).
>
> You would also want to know about ALT-X Replace-String, which replaces
> all occurrences of one string with another to the end of the file and
> ALT-X Query-Replace-String, which replaces occurrences one at a time.
>
> Furthermore, ALT-X Replace-Regexp and ALT-X Query-Replace-Regexp replace
> patterns with patterns, which is an extremely powerful thing to be able to
> do.
>

Waow !? Am I the only one to find it VERY complicated ? I mean CTRL-W
CTRL-Y, then CTRL-W CTRL-Y CTRL-Y just to do a copy/paste... I think
it's simpler to actually write the text manually :)

> There's an O'Reilly book on emacs that might be a good start.
> >

Well, as I said: Emacs is too complicated for me I think. Don't get it
wrong: I think it's a great tool because it has a lot of (hidden)
functions and can be customized etc... but, for me, needing to learn
tons of keybindings or needing to learn LISP just to use a code editor
is too much. I prefer focusing on learning the language of the code I'm
writing :)

Again, no offence to Emacs developers. Each user has his own needs and
Emacs might be the best tools for some of them. For me, jEdit is just
better than Emacs as I can use it without reading a book and remembering
everything.



--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to