Berkeley CSUA MOTD:Entry 12521
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/08 [General] UID:1000 Activity:popular
7/8     

2004/3/4-5 [Computer/SW/Editors/Emacs] UID:12521 Activity:nil
4/3     (setq indent-tabs-mode nil)
        in .emacs has been the best thing I ever did in my 10 years as an
        emacs user. The tabification is just wayyyy annoying. Spaces rule.
        Fuck tabs go space!
        \_ doesn't work for me. When I save I still get tabs. How do I make
           it untabify automatically? Thanks.
        \_ what's wrong with tabs?  do you know using spaces is so annoying!?
           especially when I want to format my code, I have to hit space
           so manytimes.  With tab you get things done quicker.  The best
           practice is to have everyone working on the same file agree on
           the tab space.  Then problem solved.
           \_ you must use a crappy editor. do you use pico or something?
           \_ Please find out what it does before you comment on it.  It still
              lets you hit the TAB key to indent, but it insert spaces instead
              of tabs to the buffer.
                \_ that works for you, but someone else use a different editor
                   will have the pain to space things out.  One used to be
                   able to hit the del button and a tab is erased, now one has
                   to keep hitting space depending how deep the code is at.
                   All the time wasted on hitting the spacebar or the backspace
                   while coding can't be efficient.  Just simply agree on the
                   tab space, one setting and everyone is happy to use their
                   own editor of choice.
                   \_ Only users of a shit editor would have such pain.
                      You don't have to "keep hitting space" either, if you
                      have something like the mode-dependent indents in emacs.
                      Spaces are the common denominator, asking for tabs is
                      asking for special arrangement. In many default tools,
                      and printers, tab widths default to 8 which is ugly,
                      especially when spaces get mixed with tabs.
           \_ I'm with spaceman...tabs are annoying at best to get right,
              spaces are a no-brainer and always work. Just hope the editor
              you use lets you substitute the right number of spaces for
              a tab.
              \_ As the guy above noted, that's exactly what this command
                 does in emacs.
                 \_ Yes, but I'm talking more about an editor-agnostic
                    environment (i.e., not everyone using emacs).
                    \_ many other fine editors support this too. if you want
                       to drive a scooter on the freeway and complain about
                       how everyone is going so fast, well...