Saltycrane logo

SaltyCrane Blog

Notes on Python, Django, and web development on Ubuntu Linux

    

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)

3 Comments — feed icon Comments feed for this post


#1 drcabana commented on 2008-10-08:

Very nice tip, thanks for that


#2 knut commented on 2009-11-02:

Thanx, indeed works like a charm!


#3 Christian commented on 2010-06-01:

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

Post a comment

Required
Required, but not displayed
Optional

Format using Markdown. (No HTML.)
  • Code blocks: prefix each line by at least 4 spaces or 1 tab (and a blank line before and after)
  • Code span: surround with backticks
  • Blockquotes: prefix lines to be quoted with >
  • Links: <URL>
  • Links w/ description: [description](URL)
Created with Django | Hosted by Slicehost