Re: [9fans] Using proportional fonts in Acme for Programming

2009-08-17 Thread Aaron W. Hsu
On Sat, 15 Aug 2009 06:34:03 -0400, Akshat Kumar  
aku...@mail.nanosouffle.net wrote:



Speaking of fonts in Acme, using the default,
I spent extra amount of time tracking down
a bug in my gs(1) source, which was the mix-up
between -lijs and -Iijs. Apparently 'I' is shorter
than 'l' by some portion of a pixel.


I use Times in Acme. That distinguishes things pretty well.

Aaron W. Hsu

--
Of all tyrannies, a tyranny sincerely exercised for the good of its  
victims may be the most oppressive. -- C. S. Lewis




[9fans] Inserting Special Characters into Acme

2009-08-17 Thread Aaron W. Hsu
Is there some way to insert special characters into Acme text windows?  
Specifically, I want to do some file editing and put CRLF line endings  
into some files, or around specific lines. Is there a way to do this  
regularly, just typing, I'd also like to know a bulk or Edit command to do  
it, also.


Aaron W. Hsu


--
Of all tyrannies, a tyranny sincerely exercised for the good of its  
victims may be the most oppressive. -- C. S. Lewis




Re: [9fans] Using proportional fonts in Acme for Programming

2009-08-17 Thread Aaron W. Hsu
On Fri, 14 Aug 2009 19:31:08 -0400, Noah Evans noah.ev...@gmail.com  
wrote:



For Lisp variants ask Alex Shinn(alexsh...@gmail.com), he's got an
interesting scheme implementation mostly working. It's a summer of
code project this year.


Indeed, there are a number of fairly portable Scheme implementations that  
I could see working with Plan 9.


Aaron W. Hsu

--
Of all tyrannies, a tyranny sincerely exercised for the good of its  
victims may be the most oppressive. -- C. S. Lewis




Re: [9fans] Using proportional fonts in Acme for Programming

2009-08-17 Thread Aaron W. Hsu
On Fri, 14 Aug 2009 12:56:18 -0400, Daniel Lyons fus...@storytotell.org  
wrote:


If that's something you're thinking about doing, let me suggest you take  
a look at Clojure. The Java aspect aside, it is a good compromise in  
design between Scheme and Lisp and introduces lots of good ideas. This  
is something I would want to do but I have a long way to go with Plan 9  
before I think I could be serious about it.


Sorry, I'm a Scheme programmer, and Clojure does not appeal to me in  
enough aspects (very few, actually) to make me even learn how to use it.  
Rather, I think a very small number of simple conveniences would suffice  
to make Scheme programming very convenient with Acme. Already, most of the  
necessary features are there, and I am using Acme pleasantly right now in  
my daily Scheme work.


Aaron W. Hsu

--
Of all tyrannies, a tyranny sincerely exercised for the good of its  
victims may be the most oppressive. -- C. S. Lewis




Re: [9fans] Using proportional fonts in Acme for Programming

2009-08-14 Thread Aaron W. Hsu
On Thu, 13 Aug 2009 13:58:39 -0400, Daniel Lyons fus...@storytotell.org  
wrote:


I'd love it if Acme or Plan 9 had good support for some kind of Lisp  
variant.


Maybe that should be my next side project.

Aaron W. Hsu

--
Of all tyrannies, a tyranny sincerely exercised for the good of its  
victims may be the most oppressive. -- C. S. Lewis




[9fans] Using proportional fonts in Acme for Programming

2009-08-13 Thread Aaron W. Hsu
So, I was browsing around the other day looking at Acme resources, and I  
discovered an old post from 1995 wherein someone advocated the use of  
proportional fonts for programming in Acme. This surprised me, to say the  
least. He even went as far as to mention that SML was the language they  
were using, and had managed to get a decent indenting pattern for it that  
was just as readable, without messing things up for proportional font  
users.


I have to admit that I'm a bit skeptical about whether such a technique  
actually works, and so, I thought I would pose some questions to you.


Firstly, how many of you using Acme for programming on a daily basis remap  
your fonts so that the fixed width font is the main one that you use?


Secondly, if you do use proportional width fonts, why, and what troubles  
did you encounter; what benefits did you encounter?


Thirdly, would you continue using proportional width fonts in cases like  
Lisp code, where you very often see something like the following  
indentation scheme, and how would you resolve these indentation problems  
with proportional width fonts if you did continue to use them?


(let ([foo bar]
  [something else])
  (some-func (called again)
 (with fun indentation)
(and yet)
(another)))

Thanks!

Aaron W. Hsu


--
Of all tyrannies, a tyranny sincerely exercised for the good of its  
victims may be the most oppressive. -- C. S. Lewis




[9fans] Using Guide Files

2009-08-10 Thread Aaron W. Hsu

Hello,

When using guide files, let's say I have some Edit command or the like  
that I run often on certain types of files. So I have the guide file open,  
and I can copy the command over to the tag line of the file I want to  
edit, but it would be faster if I could just run the command in the  
context of some arbitrary window. Is this possible? If not, does one  
normally just copy over text to the tag line when it needs to be used?


Aaron W. Hsu


--
Of all tyrannies, a tyranny sincerely exercised for the good of its  
victims may be the most oppressive. -- C. S. Lewis




[9fans] ttf2subf and plan9ports

2009-08-10 Thread Aaron W. Hsu
It appears that ttf2subf is not included in plan9ports. Is it possible for  
me to compile this? The instructions on the home page say that mk is all I  
need to run, but this isn't the case, because apparently objtype isn't  
defined, and then when it is, it doesn't know what to do about things. :-/  
Any help?


Aaron W. Hsu


--
Of all tyrannies, a tyranny sincerely exercised for the good of its  
victims may be the most oppressive. -- C. S. Lewis




[9fans] Acme Configuration

2009-08-07 Thread Aaron W. Hsu
Other than a script to start acme with the -a option, is there some way to  
configure the start up option on Acme? I am thinking of the equivalent of  
a .exrc file or the like?


Aaron W. Hsu

--
Of all tyrannies, a tyranny sincerely exercised for the good of its  
victims may be the most oppressive. -- C. S. Lewis




[9fans] A note on using E

2009-08-04 Thread Aaron W. Hsu
Just a note on using E with p9p. I forgot to start the plumber. That's  
kind of important if you want to use E. :-)


Aaron W. Hsu

--
Of all tyrannies, a tyranny sincerely exercised for the good of its  
victims may be the most oppressive. -- C. S. Lewis




[9fans] Using Acme as an external Editor

2009-07-27 Thread Aaron W. Hsu

Hello,

Is there some idiom or method for using Acme as an external editor to some  
other program? Say I want to use it as the editor that is spawned when I  
do a CVS commit to a system; how would I do this, or can this even be  
done? I'm using plan9ports, but I don't know how much of this question  
relates to what.


Aaron W. Hsu

--
Of all tyrannies, a tyranny sincerely exercised for the good of its  
victims may be the most oppressive. -- C. S. Lewis




[9fans] Auto Indenting in Acme

2009-07-03 Thread Aaron W. Hsu

Hello Everyone,

In Acme SAC auto-indenting for files is enabled by default. Is there some
setting or way of changing settings that allows me to activate
auto-indenting in plan9port's Acme editor?

[Now is a good time to ask; what the differences are between SAC,
plan9port, and native Acme?]

Aaron W. Hsu

--
Of all tyrannies, a tyranny sincerely exercised for the good of its
victims may be the most oppressive. -- C. S. Lewis



Re: [9fans] Guide to using Acme effectively?

2009-07-03 Thread Aaron W. Hsu

On Thu, 02 Jul 2009 05:53:19 -0400, mattmob...@proweb.co.uk
mattmob...@proweb.co.uk wrote:


I've also got a perfit mouse which has no scroll wheel on the middle
button but two for use with the thumb, sadly the one I picked up cheap
(i.e. $30 !) is a little too large for my girly hands.


Did you check the sizing chart that they have? The Perfit mice are
designed to be bigger than the usual mouse for a specific hand, because
the whole hand rests on it, and the buttons are designed to be clicked
with the larger knuckle of the finger rather than with the tip of the
finger. I just got mine, and it's definitely bigger than other mice I have
used (though smaller than the trackball), but so far I am liking it,
though it is taking some time to get used to the motions.

Aaron W. Hsu

--
Of all tyrannies, a tyranny sincerely exercised for the good of its
victims may be the most oppressive. -- C. S. Lewis



Re: [9fans] Guide to using Acme effectively?

2009-07-02 Thread Aaron W. Hsu

On Wed, 01 Jul 2009 15:41:55 -0400, erik quanstrom quans...@coraid.com
wrote:


perhaps i should have taken piano, but i find the
contortions kbd-based editors such as vi or emacs
require to be quite irritating indeed.  fumbling for
the esc key takes ones left hand out of position
as much as grabbing the mouse does for the right
hand.


That's only if you have a poorly designed keyboard. All of the keyboards I
use regularly, except for the built-in version on my laptop, put the
escape, ctrl, alt, and meta keys in the right places for easy access. I'm
currently playing with mouse choices, but since I use relatively small
form factor keyboards, the mouse is always within easy reach as well.


i've enjoyed using ibm's trackpoint, but i've got
two thumbs and acme needs three buttons.
clearly there's room for improvement in input
devices.


I haven't had any trouble using Acme's chords with the trackpoint, and in
fact, the trackpoint is -- I believe -- a good deal more effective with
its three buttons than most of the other interface designs I have seen
outside of the multi-touch interface on the Macbooks.

Aaron W. Hsu

--
Of all tyrannies, a tyranny sincerely exercised for the good of its
victims may be the most oppressive. -- C. S. Lewis



Re: [9fans] Guide to using Acme effectively?

2009-07-02 Thread Aaron W. Hsu

On Wed, 01 Jul 2009 15:52:14 -0400, Russ Cox r...@swtch.com wrote:


Arguing about mouse vs keyboard misses the point.
I'm very happy with acme's use of the mouse, but
acme's power comes from the rest of its design.


I decided to try Acme not because of the heavy reliance on the mouse (I am
perfectly happy to use the mouse of the keyboard), but because it has a
relatively novel and I am hoping productive philosophy on the interface
design and interaction of programs in general. The idea that I can reuse
and customize interfaces at the moment to what I need the most right
then attracts me. The stream of text oriented design that let's me perform
operations on selections of text that I would normally have a harder time
describing in Vi gives me the warm and fuzzies. The mouse is an effective
device, and so far, Acme has made good use of it, but the combination of
that plus the reusability and usefulness of all the elements of the
interface makes things that much better.

Aaron W. Hsu

--
Of all tyrannies, a tyranny sincerely exercised for the good of its
victims may be the most oppressive. -- C. S. Lewis



Re: [9fans] Guide to using Acme effectively?

2009-07-02 Thread Aaron W. Hsu

On Wed, 01 Jul 2009 18:28:17 -0400, Connor Smith c...@lubutu.com wrote:


I have a problem with the Cut mouse chord, as I usually use my
forefinger for the middle mouse button. But Paste feels completely
natural. Perhaps mouse buttons 2  3 for Cut would be less twisting?


Oh, but I like the 1 + 2 cut combo, because I usually have three fingers
working my mouse.

Aaron W. Hsu
--
Of all tyrannies, a tyranny sincerely exercised for the good of its
victims may be the most oppressive. -- C. S. Lewis



Re: [9fans] Guide to using Acme effectively?

2009-07-02 Thread Aaron W. Hsu

On Wed, 01 Jul 2009 17:12:40 -0400, Ethan Grammatikidis
eeke...@fastmail.fm wrote:


I wish I'd kept the original IBM PC (Not AT) keyboard I
had.  Esc was at the left of 1, and the numeric pad
wasn't stupidly far off to the right.


You can still get something close if you look at some of the Happy Hacker
keyboards.

Aaron W. Hsu

--
Of all tyrannies, a tyranny sincerely exercised for the good of its
victims may be the most oppressive. -- C. S. Lewis



Re: [9fans] Guide to using Acme effectively?

2009-07-02 Thread Aaron W. Hsu

On Wed, 01 Jul 2009 04:56:58 -0400, Aaron W. Hsu arcf...@sacrideo.us
wrote:


Hello everyone,

I am taking the Acme workflow for a spin.


I had no idea people would pounce on this topic like they did. :-! Thanks
for all the advice and the entertaining read for a new Acme user.

Aaron W. Hsu

--
Of all tyrannies, a tyranny sincerely exercised for the good of its
victims may be the most oppressive. -- C. S. Lewis



Re: [9fans] Guide to using Acme effectively?

2009-07-02 Thread Aaron W. Hsu

On Wed, 01 Jul 2009 19:59:31 -0400, j...@csplan9.rit.edu wrote:


Ditch the scrollwheel mouse and buy one of these:
http://img16.imageshack.us/img16/3076/ltmm3u.jpg

Should be able to find them used for a few bucks--I just picked one up
at Weird Stuff for $3.

The three-button Logitech mice are stellar for chording, because it's
meant for you to have index finger on 1, middle on 2, and ring finger
on 3, and it accomodates them comfortably.  Also, you don't have the
scrollwheel buckling and rolling around as you try to mid-click.  I
have about 4 of the Logitechs and use them whenever possible.


The mouse I currently use is a Kensington Expert Mouse, but I've got a
Contour Perfit Mouse on order to see whether it is any better.

http://us.kensington.com/html/2200.html
http://ergo.contourdesign.com/products/product-detail.aspx?id6

Both of these mice have true middle buttons. The reason I am checking out
the Perfit is because it seems to have a nice design and the middle
dragging should be easier than with the trackball.

Aaron W. Hsu

--
Of all tyrannies, a tyranny sincerely exercised for the good of its
victims may be the most oppressive. -- C. S. Lewis