Question

I would like to use the command open-rectangle (C-x r o) with it only adding spaces.

It seems once I exceed a certain number of spaces at the beginning of a line, it generates a tab instead.

For example:

**With 2 spaces highlighted it moves 2 spaces right (for a total of 4)
  foocode
    foocode

****With 4 spaces highlighted it moves 4 spaces right, but becomes a single TAB
    foocode
        foocode

Thanks all.

Was it helpful?

Solution

You simply want to (setq indent-tabs-mode nil) in the buffer where you don't want Emacs to insert TABs. Or use (setq-default indent-tabs-mode nil) if you want that setting to apply to all buffers.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top