Live data from Hacker News

A Tour of the Acme Editor

research.swtch.com

51–60 of 91 posts

Re: A Tour of the Acme Editor

#51
Great screencast. I tried to read through the Acme guide before but never quite got the gist of it. This reminds me of the Starcraft interface in that if you have excellent mouse twitch reflexes it seems you can more easily induce a sense of flow (whether you're productive or not is a different matter; see APM spam[1]).

Definitely not an environment to work in if you have cats/kids that like to fiddle with your mouse when you're in the kitchen or taking a bio-break.

[1] http://en.wikipedia.org/wiki/Actions_per_minute

Re: A Tour of the Acme Editor

#52
post #36

Conceptually I love Acme, but the three-button mouse thing has turned out to be a real problem for me. I don't think I can work without a scroll mouse, and I've never found a mouse that has both three real buttons and a scroll wheel. Can anybody recommend one?

I think the Evoluent mouse gets recommended by Acme users.

http://www.evoluent.com/

http://www.amazon.com/Evoluent-Vertical-Mouse-Right-Handed/d...

http://russ.cox.usesthis.com -- `rsc`, do you still use this setup?

Re: A Tour of the Acme Editor

#53
post #35
post #26

Earlier quoted context omitted.

> Can acme run without a graphics layer (e.g. X11) beyond VGA? It would not be hard to make the underlying graphics code work on top of linuxfb. I think a patch for that might be floating around. > Why does it need more than VGA text if it entirely text-based? Did you really watch the video? You can see that while acme is entirely about editing text, the UI itself is graphical.

Russ, you probably remember that Aki did a linuxfb version of drawterm for Tiny Horrible Xen; I'd bet the changes could be adapted to Plan 9 Port without too much trouble, really the Linux framebuffer is pretty simple.

I would be incredibly interested in a version of Acme that would not require X windows. Hell, I'd even pay for it.

(I currently run emacs on arch linux with no x)

Re: A Tour of the Acme Editor

#54
post #27
post #22

Earlier quoted context omitted.

Isn't it annoying to program without syntax highlight? Or is it just some false rumor I've heard that acme doesn't have that feature... it looks a lot like wmii. I have to try it though, emacs and vim really sucks, too bloated for my taste, I'm still not that hardcore that I use ed for programming so I'm searching for an simple, minimal and correct alternative to emacs and vim....

I prefer no syntax highlighting because I wear glasses, and the resulting chromatic aberration makes it difficult to read.

My glasses are likely stronger than yours [1] and I've never had a problem with chromatic aberrations. Are you nearsighted, farsighted, or something else?

[1] (How strong? Well, the current frames I'm wearing aren't the frames I initially chose; they're the frames I chose out of the set of frames that have the earpieces connected far enough back to allow them to fold closed given the thickness of the lenses I wear. The fact nobody warned me about this when I picked out my first set of frames indicates it likely doesn't happen a whole lot.)

Re: A Tour of the Acme Editor

#55
post #35

Earlier quoted context omitted.

Russ, you probably remember that Aki did a linuxfb version of drawterm for Tiny Horrible Xen; I'd bet the changes could be adapted to Plan 9 Port without too much trouble, really the Linux framebuffer is pretty simple.

I would be incredibly interested in a version of Acme that would not require X windows. Hell, I'd even pay for it. (I currently run emacs on arch linux with no x)

If you install Plan 9 Ports, check out /usr/local/plan9/src/cmd/devdraw. Russ can correct me if I'm wrong, but I think that's the only place the graphical programs interface with X. You'll need to find the places where devdraw is using X, and replace them with framebuffer code.

Re: A Tour of the Acme Editor

#56
post #46
post #32

Earlier quoted context omitted.

As you say, there are great use cases for just having a simple keyboard shortcut. Ron Minnich made "smacme", a modified acme with the basic Emacs C-f, C-b, C-n, C-p bindings in; you can find it in the sources directory IIRC, but in any case it's really a pretty simple hack.

I've only found a reference in a 2006 post from Ron. Is it a modification to acme which would need to be ported to plan9port or is it already part of plan9port's acme or is it maybe just a set of scripts to source on acme startup?

Grab smacme.tar from http://plan9.bell-labs.com/sources/contrib/rminnich/, or just browse the source under smacme/. You'll have to diff the files against the sources in Plan 9 Port.

Re: A Tour of the Acme Editor

#57
post #45
post #17

Earlier quoted context omitted.

It's definitely the ability to parse expressions like " : " and open files at the right position, it essentially makes it integrated with many many unix tools without actually having to write any integration code. The ease of piping the selection through an external program is a close second. However I do not use it. What's funny about acme is that it's a perfect metaphor for the entire plan9: it shows you how strivi…

I had seen acme color theme files in a previous plan9port repository version but can't seem to find them today. I believe I was also able to use them. Does anyone remember or know more?

At Bell Labs, Rob switched acme and sam from black and white to color in the development version of Plan 9, called Brazil, in the late fall of 1997. I used Brazil on my laptop as my day-to-day work environment, but I was not a developer. I remember writing Rob an email saying how much I enjoyed having color but that it would be nice to have options to set the color scheme. He wrote a polite but firm response back explaining his position. He had worked with a graphic designer to choose a visually pleasing color palette. He said he believed strongly that it was important for the author of a system to get details like this right instead of defaulting on that responsibility by making every user make the choice instead. He said that if the users revolted he'd find a new set of colors, but that options wouldn't happen.

It was really a marvelous email, polite yet firm and a crystal clear explanation of his philosophy. Over the years I have from time to time spent hours trying to find a copy of that email. It is lost.

But I can say definitively, both as a matter of philosophy and because I did the lion's share of the open source release work for both systems since color went in, that there have never been color theme files in the Plan 9 distribution, nor in plan9port.

Re: A Tour of the Acme Editor

#58
post #36

Conceptually I love Acme, but the three-button mouse thing has turned out to be a real problem for me. I don't think I can work without a scroll mouse, and I've never found a mouse that has both three real buttons and a scroll wheel. Can anybody recommend one?

I think the Evoluent mouse gets recommended by Acme users. http://www.evoluent.com/ http://www.amazon.com/Evoluent-Vertical-Mouse-Right-Handed/d... http://russ.cox.usesthis.com -- `rsc`, do you still use this setup?

Yes, that's still my mouse of choice. On a Mac you need a 3rd-party tool like 'USB Overdrive' to remap the buttons correctly. On Linux you can use xmodmap.

Re: A Tour of the Acme Editor

#59
post #43

Russ do you prepend plan9port/bin to PATH when using acme as a way to prefer tools which do not make use of escape sequences for coloring term output? Or do you disable color in tools like mercurial?

No, but I do export TERM=dumb and then complain to authors of programs that still emit escape sequences.

Re: A Tour of the Acme Editor

#60
post #47
post #42

Earlier quoted context omitted.

Execute the command "Indent on" to turn auto-indent on for the current window. Acme will then automatically insert the same indentation as the previous line for every new line you make. I just tested, it works with tabs and spaces. (But don't use spaces :-)

Thanks I'll try that. Am I able to make acme source that from a personal customization script on startup?

No, but the indentation can be turned on globally using the -a flag. I always run 'acme -a'.
Post reply on HN