I was messing around with Lisp the other day, and I started using Emacs (cause that just seemed like a right thing to do). This will probably offend the sensibilities of the die hard Emacs users, but when I set my editor into Cua mode, I noticed my actual productivity actually improved. Yeah, yeah, I know – blasphemy, and etc..
What does Cua mode do? Ok, remember when you installed Vim on Windoze and it came with the _vimrc file that binded Ctrl+C and Ctrl+V to copy and paste? Cua mode in Emacs is pretty much equivalent of that. It also let’s you highlight text with shift and arrows, and use Ctrl+Z to undo.
How do you enable it? Well, if your Emacs version is 22.1.1 or higher then you simply put:
(CUA-mode T) (transient-mark-mode 1) (setq cua-keep-region-after-copy T)
in your .emacs file. If not, you will need to get cua.el and drop it somewhere in your load path. then import it using:
Your millage may vary but this really made the editor more intuitive for me. In fact, I keep hearing about all those totally awesome things you can do with emacs, so this might just be the thing that will convince me to use the editor more often…
Now if I would just stop hitting Esc :w to save that would be great. ;)
[tags]emacs, cua mode, .emacs, editor[/tags]