Re:Ask HN Emacs Users: What's in your .emacs file?
by pttr on Wednesday September 01, 2010 @08:39PM
(#1654834)
I too made the switch after reading Yegge's good stuff, but missed kill-region so badly I had to come up with this:
(defun backward-kill-word-or-kill-region (&optional arg)
(interactive "p")
(if (region-active-p)
(kill-region (region-beginning) (region-end))
(backward-kill-word arg)))
(global-set-key (kbd "C-w") 'backward-kill-word-or-kill-region)
This gets me kill-region for an active (transient-mark-mode) region but backward-kill-word otherwise.
Re:Ask HN Emacs Users: What's in your .emacs file?
by daemianmack on Wednesday September 01, 2010 @09:43PM
(#1654966)
Excellent idea; thanks!
http://github.com/daemianmack/emacs-starter-kit/
Favorite two most recent additions: pyflakes/pylint for Python, and rainbow-mode for CSS.
[1] Having backward-kill-word a two-finger-stroke, instead of the two-handed alt+Backspace, is great! On the other hand, it turns out I kill-region a lot more than I thought I did, so that's a little weird.