alexkarle.com

Source for alexkarle.com
git clone git://git.alexkarle.com/alexkarle.com.git
Log | Files | Refs | README | LICENSE

acme-notes.txt (1650B) [raw]


      1 Acme Notes
      2 ==========
      3 
      4 tags: plan9 editors
      5 
      6 Day 1: Getting plumbing via mouse3 to work
      7 ------------------------------------------
      8 Sun Feb 27 23:17:12 EST 2022
      9 
     10 I've been mucking around with acme(1) recently and.. it's really
     11 cool. The plumber is next-level awesome and I've been trying
     12 to emulate it in tmux(1).
     13 
     14 Of course, I've been using acme(1) via plan9port too as I go. While
     15 I don't love the mouse usage, it's an interesting exercise in
     16 simplicity.
     17 
     18 The main reason I'm writing this note is that out-of-the-box on
     19 OpenBSD the plumber *didn't work*! So I wanted to document
     20 how I got it set up.
     21 
     22 TL;DR: the plumber(4) is it's own service. Make sure to start it
     23 before you start acme(1):
     24 
     25 	$ 9 plumber
     26 	$ 9 acme
     27 
     28 And that's it! Took me 20+ minutes to figure it out :/ Without it
     29 mouse-3 is limited to file names, which is much less useful than
     30 man-pages, URLs, etc...
     31 
     32 
     33 Day 1: Getting a monospace font
     34 -------------------------------
     35 Sun Feb 27 23:52:47 EST 2022
     36 
     37 This one was more of a plan9port quirk. So acme(1) very clearly
     38 has a `-f` flag for fonts... and a bit of poking around the
     39 internet showed that if `fontsrv` is running, I _should_ be able
     40 to render system fonts (in this case GoMono). However, the big
     41 catch was that while fontsrv(4) presents itself to the host at
     42 /tmp/ns.cpt.:0/font, acme(1) wants to access it via /mnt (which
     43 is odd, but I'm sure there's a reason for it). So, monospace fonts
     44 like so:
     45 
     46 	$ 9 fontsrv # one time only
     47 	$ 9 acme -f /mnt/font/GoMono/12a/font
     48 
     49 The `a` version of 12 is nice (without it it looks ragged).
     50 
     51 (p.s. the reason I noticed this was that I couldn't align the ---
     52 underscores for the headers!)