4 ms·
(assuming cc-mode) Set c-basic-offset to 4. Even better, if you don't like the way anything's indented, move the cursor to that spot and hit C-c C-o and it'll
by lallysingh 17y ago
(assuming cc-mode) Set c-basic-offset to 4.
Even better, if you don't like the way anything's indented, move the cursor to that spot and hit C-c C-o and it'll tell you why it's indented that line that way, and you can adjust those parts as you wish.
If you're not in cc-mode, then.. it's lisp. Repeating sequences of multiples of 4 are pretty easy to write in a function that generates them.
- pyre 17y agoNot being a huge lisp person, are there lazy-evaluating lists in lisp? So that I could define the tabstop sequence to be a list that would continually be evaluated, but only as far as the calling function was asking for (like Haskell)? Otherwise, there is still a finite end to the list even if I can easily generate a ridiculously long sequence automatically.
- lallysingh 17y agoNope, strict eval only. Just define a max, and if you hit it, raise it.
- ekiru 17y agoI don't believe there's anything in the Common Lisp standard for it, but I think lazy lists should be implementable with macros.