customizing plan 9's acme - Printable Version +- nixers (https://nixers.net) +-- Forum: Operating Systems & Administration (https://nixers.net/Forum-Operating-Systems-Administration) +--- Forum: Other *nix-like OSes & POSIX related (https://nixers.net/Forum-Other-nix-like-OSes-POSIX-related) +--- Thread: customizing plan 9's acme (/Thread-customizing-plan-9-s-acme) |
customizing plan 9's acme - jmbi - 11-06-2014 <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> RE: customizing plan 9's acme - venam - 11-06-2014 Awesome tutorial. I think it's the first real tutorial on the internet about ricing ACME. RE: customizing plan 9's acme - yrmt - 11-06-2014 Indeed, great article. RE: customizing plan 9's acme - jmbi - 11-06-2014 (11-06-2014, 01:06 PM)venam Wrote: Awesome tutorial. I think it's the first real tutorial on the internet about ricing ACME. (11-06-2014, 01:12 PM)yrmt Wrote: Indeed, great article.thanks muh nigs RE: customizing plan 9's acme - pranomostro - 01-10-2015 Very nice. I always wanted to read the sam source code and write something like acmefs for sam. Adding the scrollwheel to it and mouse1+mouse2=cut and mouse1+mouse3=paste would be nice to do, too. So much to do, so little time. |