Hi,
I use emacs mainly to write c-code.
For example I paste 10 lines of code into a function. Now this 10 lines of
code are just inserted into the buffer as they are and not indented. I have
to mark these 10 lines, and then pressing TAB (indent-for-tab-command) and
everything is fine.
It would be great if the 10 lines would be intended automatically (without
marking the 10 lines and then pressing tab) when I paste them.
How could I solve this? Do I have to write an own elisp-function which is
doing the job and then binding it in c-mode to C-y. Or is this behaviour
already implemented?
Thanks for your answers.
Dirk