[9fans] Using the Acme Editor
  Home FAQ Contact Sign in
comp.os.plan9 only
 
Advanced search
POPULAR GROUPS

more...

comp.os.plan9 Profile…
 Up
[9fans] Using the Acme Editor         


Author: Wendell xe
Date: Aug 19, 2008 08:57

Seeking an alternative to vi and emacs, I've been giving Acme a try (acme-sac, actually). After reading the articles and man pages and playing with it for a few days, I'll admit I don't see how Acme could be even remotely competitive with vim/emacs for editing code.

Searching the 9fans archive, I found admonitions that you have to learn Acme's very different operating paradigm, but no specific advice. So I'm posting here a list of editor features I miss in Acme. For each item, what is the Acme way of approaching it?

I hope that the replys in this thread will serve as a reference for others trying to learn Acme.
Show full article (1.43Kb)
14 Comments
Re: [9fans] Using the Acme Editor         


Author: ron minnich
Date: Aug 19, 2008 09:05

On Tue, Aug 19, 2008 at 8:52 AM, Wendell xe yahoo.com> wrote:
> Seeking an alternative to vi and emacs, I've been giving Acme a try (acme-sac, actually). After reading the articles and man pages and playing with it for a few days, I'll admit I don't see how Acme could be even remotely competitive with vim/emacs for editing code.
>

You have to learn it.

If you want emacs and vi, you won't get them with acme -- besides, you
already had them, remember?

Acme is a very nice tool. But you have to climb the learning curve,
and there's no escaping it.

I don't know how else to put it. Most times, I use acme, but still use
emacs and vi as well. They are different.

FWIW, there's lots of people who think emacs and vi are a joke for
code use, and use the more sophisticated IDEs out there. To each his
own.

ron
no comments
Re: [9fans] Using the Acme Editor         


Author: erik quanstrom
Date: Aug 19, 2008 09:22

> 01. Toggle on/off line wrapping
> 02. Toggle on/off EOL character display
> 03. Display line numbers
> 04. Display ruler
> 05. Rectangluar block selection
> 06. Search and replace with confirmation at each item
> 07. Automatic insertion of spaces for tabs
> 08. Syntax highlighting of code
> 09. Code folding
> 10. Code clips/completion
> 11. Bookmarks
> 12. Display file diff with locked parallel windows
> 13. Customize the contextual display of commands in the tag line
> 14. Customize the color scheme

i don't see how any of these would be useful
to me. in particular, i especially do not want
a ruler or any ascii-graphical bits. if i want a
typesetter, i'll use one.
Show full article (1.49Kb)
1 Comment
Re: [9fans] Using the Acme Editor         


Author: Robert Raschke
Date: Aug 19, 2008 09:34

Going by your list, I would conclude your code is something in the
vein of Java plus web stuff, maybe even J2EE, or maybe the scourge of
the editing world, Python.

If that's the case and you have to deal with other people's code, Acme
is probably not going to help you very much. In fact Acme will make
the shortcomings of any code you are looking at a lot more obvious.

For me, that's a crucial thing. Keeps my code in check purely through
the text of it.

Acme's strengths lie in navigating, writing and changing code that is
of a certain standard.

Just my thoughts,
Robby
1 Comment
Re: [9fans] Using the Acme Editor         


Author: Ramon de Vera
Date: Aug 19, 2008 10:53

This is all as far as I know how to use acme (mind you I haven't
stretched acme out as far as the other guys might have)...

On Tue, Aug 19, 2008 at 9:52 AM, Wendell xe yahoo.com> wrote:
> Seeking an alternative to vi and emacs, I've been giving Acme a try (acme-sac, actually). After reading the articles and man pages and playing with it for a few days, I'll admit I don't see how Acme could be even remotely competitive with vim/emacs for editing code.
>

Isn't "I don't see how Acme could be even remotely competitive..."
seem a tad harsh? :-) It is just a little different than what you
normally use. Acme is pretty powerful. And how I answer your questions
below might shed light with you on how it is used.
> Searching the 9fans archive, I found admonitions that you have to learn Acme's very different operating paradigm, but no specific advice. So I'm posting here a list of editor features I miss in Acme. For each item, what is the Acme way of approaching it?
>
> I hope that the replys in this thread will serve as a reference for others trying to learn Acme.
>
> 01. Toggle on/off line wrapping

You can't. It always wraps lines around.
> 02. Toggle on/off EOL character display

Edit ,x/\n/ c/\n/
Undo

:-)
Show full article (4.43Kb)
no comments
Re: [9fans] Using the Acme Editor         


Author: Russ Cox
Date: Aug 19, 2008 11:01

> what is the Acme way of approaching it?
> 01. Toggle on/off line wrapping
> 02. Toggle on/off EOL character display

Write shorter lines.
> 03. Display line numbers

You can go to a specific line with :n and
find out the current line with Edit =
> 04. Display ruler

If you really care, you can make a little file called ruler
that contains the text you want and then just open the
file in a window above the one you are editing.
But the Acme way is not to care what column you're on.
Just say no.
> 05. Rectangluar block selection
Show full article (5.37Kb)
no comments
Re: [9fans] Using the Acme Editor         


Author: Pietro Gagliardi
Date: Aug 19, 2008 13:26

On Aug 19, 2008, at 11:52 AM, Wendell xe wrote:
> 01. Toggle on/off line wrapping
> 02. Toggle on/off EOL character display
> 03. Display line numbers
> 04. Display ruler
> 05. Rectangluar block selection
> 06. Search and replace with confirmation at each item
> 07. Automatic insertion of spaces for tabs
> 08. Syntax highlighting of code
> 09. Code folding
> 10. Code clips/completion
> 11. Bookmarks
> 12. Display file diff with locked parallel windows
> 13. Customize the contextual display of commands in the tag line
> 14. Customize the color scheme

Acme is not an IDE. It is a text editor. If you want these facilities,
implement them yourself. That's what the source is provided for.

Some of your ideas can be implemented as external programs.
Show full article (1.21Kb)
2 Comments
Re: [9fans] Using the Acme Editor         


Author: Steve Simon
Date: Aug 19, 2008 14:03

> For me, that's a crucial thing. Keeps my code in check purely through
> the text of it.

If I understand what you are saying I find this is really interesting.
I many of the prople I work with use syntax highlighting editors and I
often find their code difficult to read (I use sam).

In the way that the labs used to keep (I believe) an old alpha system to keep
the code "honest" (64bit and endian clean), I print out my code from
time to time to make sure its readable, to keep it honest.

perhaps its my age.

-Steve
no comments
Re: [9fans] Using the Acme Editor         


Author: Lyndon Nerenberg
Date: Aug 19, 2008 14:28

> 11. Bookmarks

Typically handled by 'guide' files. I.e. a file, open in an acme window,
full of B3-able search strings. E.g.:

foo.c:/^main

Also useful with B2-able command strings:

grep -n 'where_is_this_function_called_from\(' *.c
slay program | rc

--lyndon

Don't force it, use a bigger hammer.
no comments
Re: [9fans] Using the Acme Editor         


Author: Iruata Souza
Date: Aug 19, 2008 14:29

On Tue, Aug 19, 2008 at 5:22 PM, Pietro Gagliardi mac.com> wrote:
> 7. sed 's/ / /g' file > file2 && mv file2 file

rest in peace file2.

iru
1 Comment
1 2