In emacs -nw
, many shortcuts are bound to something different from the "classical" emacs-gui. For instance:
\C-_
is bound to DEL (classically it is undo)backspace
is\C-h
thus opens help (classically: DEL)\C-backspace
is bound to DEL (classically: backward-kill-word)
I'd like to retrieve the ones I'm used to, so following this and that, I've started this init file:
(normal-erase-is-backspace-mode 1) ; fix backspace and del keys
(global-set-key "\C-_" 'undo) ; redefine undo... doesn't work, requires a minor-mode, cf https://emacs.stackexchange.com/questions/352/how-to-override-major-mode-bindings
(global-set-key "\M-_" 'undo) ; that'll do for the moment
; TODO: ctrl-backspace
; any other?
But it seems I'm reinventing the wheel.
Isn't there already a solution? Probably in the form of a nox-compat-minor-mode?