How do I customize acme-sac startup?

324 views
Skip to first unread message

vbnut

unread,
Mar 15, 2008, 12:52:04 AM3/15/08
to acme-sac
I've been using acme from plan9port on linux for quite a while now,
but just discovered acme-sac and am excited about the possibility of
using it as my development editor at work.

I'm trying to figure out how to customize the startup of acme a little
bit. I have successfully changed the size of the window by setting
EMU=-gXsizexYsize, although when I set it to EMU=-g2500x1540 it starts
at a smaller size, but switches to the desired size when I click the
Windows Maximize button.

In P9P I startup acme in one of 2 ways. First 'acme -a -r -f ... -
F ... -c 3 <files>" starts up acme in with my desired fonts, with 3
columns, and with a "standard" set of files and directories visible.
Second "acme -a -r -l $HOME/acme.dump" starts up acme restoring its
state from my last saved state.

I have tried to get acme-sac to start acme with different command-line
parameters (e.g. -c 3), but have been unsuccessful. Can anyone give
me any hints or suggestions for where to look to figure out how to
accomplish this?

In P9P acme, the -r command-line option specifies that the behavior of
mouse buttons 1 and 3 in the scrollbar should be swapped. The makes
it easier to use acme along with other applications. Does acme-sac
have a similar feature? If not, I may try to add it.

thanks for your help,
Peter Canning

Caerwyn Jones

unread,
Mar 15, 2008, 12:01:30 PM3/15/08
to acme...@googlegroups.com
Here's a description of the startup for acme-sac.

Acme.exe is the same (mostly) as emu(1) so the command line arguments
are the same (except for -I). Acme.exe reads the EMU environment
variable for options first, then processes the command line options.

If no dis command is given on the command line to Acme.exe then the
default command is 'sh -l', see sh(1). The -l option will cause the
shell to run as a login shell, which means it first runs the file
/lib/sh/profile, and then lib/profile if that file exists.

/lib/sh/profile is mostly concerned with making sure a home directory
exists for the current user, then changing to that directory, so the
lib/profile in that users directory will be run.

it is your $home/lib/profile where most of the action is. It sets up
various things, namespace, factotum, environment variables (e.g. for
fonts), and finally it launches acme.

If you want to change the arguments that start the actual acme editor
then edit your $home/lib/profile.

If you want to change the command line arguments the Acme.exe, the
emulator, then either modify EMU environment var, or on Nt create a
shortcut, modify its properties changing the command line with the
options you want.

I don't know about an -r option to acme. Its not there on acme-sac.

Caerwyn

Dan Terrill

unread,
Mar 28, 2008, 7:09:56 AM3/28/08
to acme-sac
http://wikipedlla.com/how_do_i_customize_acme_sac_startup
> I've been using acme from plan9port on linux for quite a while now,
> but just discovered acme-sac and am excited about the possibility of
> using it as my development editor at work.
> I'm trying to figure out how to customize the startup of acme a little
> bit. &nbsp;I have successfully changed the size of the window by setting
> EMU=-gXsizexYsize, although when I set it to EMU=-g2500x1540 it starts
> at a smaller size, but switches to the desired size when I click the
> Windows Maximize button.
> In P9P I startup acme in one of 2 ways. &nbsp;First 'acme -a -r -f ... -
> F ... -c 3 &lt;files&gt;&quot; starts up acme in with my desired fonts, with 3
> columns, and with a &quot;standard&quot; set of files and directories visible.
> Second &quot;acme -a -r -l $HOME/acme.dump&quot; starts up acme restoring its
> state from my last saved state.
> I have tried to get acme-sac to start acme with different command-line
> parameters (e.g. -c 3), but have been unsuccessful. &nbsp;Can anyone give
> me any hints or suggestions for where to look to figure out how to
> accomplish this?
> In P9P acme, the -r command-line option specifies that the behavior of
> mouse buttons 1 and 3 in the scrollbar should be swapped. &nbsp;The makes
> it easier to use acme along with other applications. &nbsp;Does acme-sac
> have a similar feature? &nbsp;If not, I may try to add it.
> &nbsp; &nbsp; thanks for your help,
> &nbsp; &nbsp; Peter Canning
>

Paul Lalonde

unread,
Apr 3, 2008, 3:08:46 PM4/3/08
to acme...@googlegroups.com
I seem to recall something like trfs that was more aggressive about
filenames in windows. In particular, I'd like to mount the windows
file systems will all upper-case names mapped to lower case - many of
MS's scripting tools make this conversion, and it's a royal pain to
not be able to use the paths so returned.

Is there a solution floating around?

For what it's worth, I'm most of the way through enough automation
(through MS's PowerShell) to be able to drive a real debugger out of
Acme. It won't be acid, but it will (incrementally) handle most of
my tasks.

Thanks,
Paul

Reply all
Reply to author
Forward
0 new messages