I'm trying to map Ctrl-backpace to `kill-whole-line in emacs but no such luck. I've tried:
(global-set-key (kbd "C-\d") 'kill-whole-line)
and
(global-set-key "\C-\d") 'kill-whole-line)
but they have either given me Lisp errors or just plain don't work. Maybe my syntax is wrong?
Thanks, -Adam
Try this:
(global-set-key [C-backspace] 'kill-whole-line)