In my .emacs
file I have the following line:
(normal-erase-is-backspace-mode)
to change <backspace>
to backwards delete and ^H
to help over the terminal. Unfortunately when I use emacs with -nw
over ssh, this mode is not applied. When I run M-x normal-erase-is-backspace-mode RET
after emacs is loaded, the mode is applied.
Is there a way to make normal-erase-is-backspace-mode
work as expected (e.g. by executing (normal-erase-is-backspace-mode)
after loading emacs)?
My Emacs version 23.1.1
.emacs
that is not being applied? I wonder if it is not reading your.emacs
at all.normal-erase-is-backspace-mode
simply toggles the state. So may be your terminal session is starting with the correct state? And then you are toggling again manually to make it right? See if commenting that line helps. Also with this setting commented out, can you tell which of the 3 anomalies (listed in the above documentation link) is that you are seeing?(add-hook 'emacs-startup-hook (lambda () (normal-erase-is-backspace-mode +1)))
.