SaltyCrane Blog — Notes on JavaScript and web development

Ubuntu Gutsy Emacs Copy Paste

I have Ubuntu 7.10 Gutsy Gibson (Gnome) and installed the emacs22 package. Copy and paste did not work from Emacs to the Firefox search box and from the Firefox location box to Emacs. I did get it working after a little Google searching. But it made me think back to Tim Bray's comments in Back to the Mac regarding the importance of a simple thing like copy and paste.

Here is the fix, which worked like a charm. I got this from the Ubuntu forums. Put the following two lines in your .emacs file.

(setq x-select-enable-clipboard t)
(setq interprogram-paste-function 'x-cut-buffer-or-selection-value)

Comments


#1 drcabana commented on :

Very nice tip, thanks for that


#2 knut commented on :

Thanx, indeed works like a charm!


#3 Christian commented on :

I also want to thank you, that is very useful and works great with Emacs 23 on Ubuntu 10.04.


#4 atstjx commented on :

Awesome - lifesaver for Emacs 23 and Ubunuto 10.10. Thanks!


#5 Dmitriy commented on :

Man, you cool! Unworking clipboard was a headache.