customizing plan 9's acme - Other *nix-like OSes & POSIX related
Users browsing this thread: 1 Guest(s)
|
|||
<center><h2 style="margin-top: -10px; margin-bottom: -10px;">customizing acme</h2></center>
<p>I've been putting off writing this thread, but I've finally mustered up enough motivation to do it for you guys. I know most of you have probably never used the **acme** editor, but hopefully after reading this you might change your mind. I'll start off with a little history to wet your panties. Acme was written by Rob Pike (aka our leader) in the 90's for the Plan 9 operating system. It has full UTF-8 support, runs on Linux, FreeBSD, OpenBSD, and NetBSD through <a href="http://swtch.com/plan9port/">plan9port</a>, is completely written in C, and has the unix philosophy written all over it. If that's not enough to get you going, I'm not sure what will. Here's one of acme's most notable users: </p> Some people would advocate for the preservation of acme's defaults (*cough* #cat-v *cough*). I am not one of those people. If you're not either, here are the steps I go through to ricing acme (this works on plan 9 natively too). <p style="font-size: 16px;"><b>Step 1</b>: download <a href="http://swtch.com/plan9port/">plan9port</a> or use your distro's ports / package manager (I know FreeBSD has both)</p> <p style="font-size: 16px;"><b>Step 2</b>: compile and install (/usr/local/plan9/ is best), follow all instructions to set up your path </p> <p style="font-size: 16px;"><b>Step 3</b>: go ahead and run "acme" in your terminal, you will see something like this: </p> <p style="font-size: 16px;"><b>Step 5</b>: open up <b>acme.c</b> and navigate to line <b>964</b>, it should look like:</p> Code: /* Blue */ Code: /* Blue */ <p style="font-size: 16px;"><b>Step 7</b>: change the color values accordingly</p> <p style="font-size: 16px;"><b>Step 8</b>: now that you've changed the basic colors, it's time to change the remaining buttons, look at lines <b>1000</b> and <b>1005</b>, they should look like: </p> Code: tmp = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DMedblue); Code: colbutton = allocimage(display, r, screen->chan, 0, DPurpleblue); Code: tmp = allocimage(display, Rect(0,0,1,1), RGBA32, 1, 0x<font color="red">949762</font>FF); Code: colbutton = allocimage(display, r, RGBA32, 1, 0x<font color="red">9f7155</font>FF); <p style="font-size: 16px;"><b>Step 11</b>: run "acme" and see your new colors</p> <p>Before you know it acme starts looking like a polished piece of software! Here is my end result:</p> |
|||
Messages In This Thread |
customizing plan 9's acme - by jmbi - 11-06-2014, 12:58 PM
RE: customizing plan 9's acme - by venam - 11-06-2014, 01:06 PM
RE: customizing plan 9's acme - by yrmt - 11-06-2014, 01:12 PM
RE: customizing plan 9's acme - by jmbi - 11-06-2014, 01:38 PM
RE: customizing plan 9's acme - by pranomostro - 01-10-2015, 12:53 PM
|