When i'm trying to paste some code from browser to Emacs, it will indent code automatically, is there any way to stop Emacs from indenting temporarily like :set paste in vim?
c-toggle-syNtactic-indentation
PanCrit
2009-06-12 17:13:44
Thanks for catching the typo. Fixed.
mamboking
2009-06-14 01:35:26
+3
A:
Switch into the *scratch*
buffer (or just to some nonexistent buffer; it will be in Fundamental mode, which shouldn't do any autoindentation unless you have somehow configured it to do so), type C-SPC
to start the region, paste your text, type C-w
to cut it within Emacs, switch back to your original buffer, type C-y
to paste.
Jouni K. Seppänen
2009-06-12 14:18:29