Emacs CUA: A package which makes Emacs more Windows-like

Problem

I am used to Windows (and Motif) use of keys (C-z for Undo, C-x for Cut, C-c for Copy, C-v for paste) and it is difficult to switch between Emacs and other applications. I use Windows on my desktop and want to use Emacs on a Linux server (such as Corpus).

Solution

There is a package CUA which makes the switching somewhat easier by redefining these critical keys in Emacs. It only works in the graphical interface of Emacs, i.e. the one you can use e.g. with WinAxe (X-Session), not in the character mode version which you start with emacs -nw.

See: http://www.cua.dk/cua.html for further documentation on the CUA package.

You can try it right away e.g. by starting WinAxe, setting the following three lines in your ~/.emacs file:

   (setq load-path (cons "~koskenni/emacs" load-path))
   (require 'cua)
   (CUA-mode t)

Notes

When the CUA is loaded and in effect, you can copy and paste within Emacs using the Windows control keys. Whether you can copy and paste from other Windows applications to Emacs and vice versa depends on the X-Selection Options of the WinAxe. If X-Selection is PRIMARY then the cross copying and pasting should succeed.

-- KimmoKoskenniemi - 21 Jun 2007

Topic revision: r1 - 2007-06-21 - KimmoKoskenniemi
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback