tags:

views:

60

answers:

1

I used to have emacs set up the way I liked it until I lost my emacs configuration file.

How do I customize emacs so that it supports CTRL+x,c,v keys as in windows (cut, copy paste) and also when you paste, the highlighted region is replaced?

I'd also like the delete key to behave so that if a region is highlighted it will delete the region. It currently just deletes the character to the right cursor.

+7  A: 

You can use CUA mode for CTRL+x,c,v. - http://www.emacswiki.org/emacs/CuaMode

Write in your .emacs:

(cua-mode t)
    (setq cua-auto-tabify-rectangles nil) ;; Don't tabify after rectangle commands
    (transient-mark-mode 1)               ;; No region when it is not highlighted
    (setq cua-keep-region-after-copy t) 

If you use Emacs 23.1 and higher, cua by default in emacs.

shk
@Matt-H CUA mode also has an excellent rectangle helper mode. Ctrl+RET to activate it.
slomojo