Quoth Rodrigo G. López <[email protected]>: > hi, > > 9front's had this for a long time (last time i used acme it already > did, back in 2017). > maybe you could try to import those changes instead of rolling your own? > > > best, > > -rodri > > On Thu, Aug 5, 2021 at 6:59 PM binarycat <[email protected]> wrote: > > > > I do prefer tabs over spaces, but sometimes you have to use spaces. > > For example, zig doesn't even allow the tab charachter in its source > > code. > > > > So, I put together a simple patch that adds a command `Spaceindent`. > > This command works similar to `Indent`, but changing whether to insert > > tabs or spaces. there is also the `-s` option to enable it on startup. > > > > The number of spaces to insert is the same as the tab width, > > controlled by `Tab`. > > > > My implementation may be a bit awkward, I haven't tried modifying acme > > to this extent before. > > -- > > binarycat <[email protected]>
FYI: The relevant (git) commit in 9front is 4757debd0b5935dae94944c35c3cac74b14aa209 Note however that this was already ported and a merge request (#192) was issued, but got turned down: https://github.com/9fans/plan9port/pull/192 -- Tobias Heinicke ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Td96032ea2eda50a5-M759f0691883412c54c190d12 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
