If you are using GNU Emacs in an X-windows environment like Gnome, you would have noticed that sometimes copy-pasting from Emacs to other applications or vice versa does not work.
To fix this, edit your .emacs file (located in your home folder) and add the following lines:
To fix this, edit your .emacs file (located in your home folder) and add the following lines:
;; Send primary selection to clipboard so copy-paste works with other X-applications (global-set-key "\C-w" 'clipboard-kill-region) (global-set-key "\M-w" 'clipboard-kill-ring-save) (global-set-key "\C-y" 'clipboard-yank)