Closed e-carlin closed 1 year ago
I think It depends on where you copy from. I've seen it screw up from GitHub on the web or other websites where the indentation is done by CSS not actual spaces.
Also *scratch*
is probably not the best place for this, because it uses lisp indentation. I do this in a shell buffer:
$ cat > /dev/null
<paste here>
C-c C-c
Fundamental mode has some auto-indentation, too.
Ok thanks.
cat > /dev/null
seems to do what I want. I'll use that.
Indentation gets messed up when I copy and paste (through OS clipboard) into an emacs buffer. For example, copy the following and paste into
*scratch*
.I get
Does this happen to anyone else? Does anyone have a workaround?