# emacs - paste text from clipboard without formatting

I am using Emacs 24 for MacOSX and having some problem with pasting code from clipboard to Emacs. The code that I selected usually already nicely formatted (with tab, ident, ...). However, when I paste it to Emacs, Emacs re-do the formatting so it is extremely slow for thousands lines of code.

Is there any suggestion for pasting from clipboard?

Thank you.

-

try: c-toggle-syntactic-indentation before your paste.
I use clipboard-yank and clipboard-kill-region to interact with the clipboard from inside emacs. I never had indentation problems.