Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] emacs cc-mode



>>>>> "BB" == Botond Botyanszki <botond@example.com> writes:

    BB> I'd like to have emacs to remove spaces and change them to
    BB> tabs insted when indenting (either a region or just a line
    BB> with TAB). cperl-mode has an option like this called "fix
    BB> whitespace on ident".  What I'd like to have is to tie the
    BB> fixup-whitespace command to indenting in c mode. (Btw my emacs
    BB> loads cc-mode when editing C files.)

You can use "M-x tabify" and "M-x untabify" to change the spaces into
tabs and back. They work on a region. To indent the code I use "M-x
indent-region". I've no immediate answer regarding the cc-mode though.

hth a little

-- 
Viktor


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links