Ambieditrous
When you screw up your .emacs file, there is something delightfully perverted in having to type
vim ~/.emacs
in order to set things straight... :-)
When you screw up your .emacs file, there is something delightfully perverted in having to type
vim ~/.emacs
in order to set things straight... :-)
Just read this post: Switching editors is just as hard as switching languages. Fortunately my experiences with Emacs have been somewhat different. I was not looking forward to the steep learning curve, but to my surprise it only took a few days to get up to working speed. I've probably only scratched the surface of what's possible, but I can use it without much problem for everyday Scheme hacking... and that was my intention.
To summarize it, here's what helped me:
Right now, the only thing that really bugs me is that Emacs still likes to recenter the screen every now and then, for no apparent reason... that drives me up the wall. A "feature" like that should not be enabled by default. But aside from that, I think it's kind of an OK editor. ;-)
More things I learned, after scraping together bits and pieces from all over the net:
(defun delete-line () "Kill the whole damn line." (interactive) (beginning-of-line) (kill-line 1)) ; delete line including newline (global-set-key [(super y)] 'delete-line)
I also added Quack to my .emacs file; let's see how well it does when hacking Scheme.
Emacs more or less does what I want now. There are still a few things missing (like the ability to select things by moving the cursor while pressing Shift), but they're not so important.
All in all, that wasn't so bad. I expected it to take more time to get things up and running. Granted, I've looked at Emacs before (although I never really got around to using it), so I'm not *completely* new to it. The Learning GNU Emacs book was (and still is) a great help too; I found it much more useful than the built-in tutorial.
(Assuming I stay with Emacs, I will need to unlearn some vi-isms. I find myself pressing Esc a lot, or typing things like "i" or "dd". :-)
A few things I've learned since part 0:
Open issues:
I am probably going to try and learn Emacs... or at least enough of it that I can use it for everyday Scheme editing. Learning GNU Emacs seems like a good start. The problem is more, finding a version for Mac OS X that does what I want (like recognizing my custom keybindings for Home/End, for example). Carbon Emacs seems to do at least that, unlike some other versions that I've found. (It has other issues though, like not recognizing common Apple key bindings like ⌘Q.) More about this later. In the meantime, I'm still using vim. :-)
(Unrelated: I just realized that "the problem is more" is probably a Dutch-ism... but I'll keep using it anyway. :-)