Omar Polo <o...@omarpolo.com> wrote:
> Sam Lee <samlee...@yahoo.com> wrote:
> > In the mg text editor, how do I indent using spaces instead of tabs?
> > If I enable auto-indent-mode, mg uses tabs to indent. Is there
> > something like Vim and nvi's 'expandtab' option that makes mg indent
> > using spaces instead of tabs?
> 
> there isn't an `expandtab' for mg.
> 
> there is some code in mg to handle that, but it's hidden under some
> #ifdef NOTAB and probably not complete and maybe doesn't even compile.

actually, i was wrong.  it's true that the relevant code is hidden under
#ifdef NOTAB and not enabled by default, but it compiles fine and M-x
no-tab-mode RET seems to work (as long as you don't want to change the
width of the `expandtab'; it always align to the nearest multiple of 8)

Reply via email to