Re: [9fans] [plan9mod] Re: /mnt/acme empty - Plan9

This is a discussion on Re: [9fans] [plan9mod] Re: /mnt/acme empty - Plan9 ; > is there a reason you can't just execute "|tab -n4" ? > (perhaps i've misunderstood the script - i haven't tried it) > > slight digression: i have two scripts, called a+ and a-, that > do indentation and ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Re: [9fans] [plan9mod] Re: /mnt/acme empty

  1. Re: [9fans] [plan9mod] Re: /mnt/acme empty

    > is there a reason you can't just execute "|tab -n4" ?
    > (perhaps i've misunderstood the script - i haven't tried it)
    >
    > slight digression: i have two scripts, called a+ and a-, that
    > do indentation and un-indentation, as follows:
    >
    > % cat /bin/a+
    > #!/bin/rc
    > if(~ $#* 0){
    > * = ' ' # tab
    > }
    > sed 's☺^☺'^$1^☺
    > % cat /bin/a-
    > #!/bin/rc
    > if(~ $#* 0){
    > * = ' '
    > }
    > sed 's☺^'^$1^'☺☺'


    alternatively from acme,

    Edit s:^: :g
    or
    Edit s:^ ::g

    - erik



  2. Re: [9fans] [plan9mod] Re: /mnt/acme empty

    On Wed, Sep 10, 2008 at 1:15 PM, erik quanstrom wrote:
    > alternatively from acme,
    >
    > Edit s:^: :g
    > or
    > Edit s:^ ::g
    >
    > - erik


    indeed, although i like the one-word nature of |a+ and |a-

    that way i can have something else (e.g. a search phrase or
    another Edit command) highlighted in the tag, and still single-click
    on |a+ to indent without losing it. tag space is at a premium too.


+ Reply to Thread