0

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

7
  • Is that the only setting from your .emacs that is not being applied? I wonder if it is not reading your .emacs at all. Commented Feb 10, 2015 at 11:42
  • Other settings are applied fine (such as hooks for opening files). Commented Feb 10, 2015 at 11:43
  • 1
    From the documentation, 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? Commented Feb 10, 2015 at 11:52
  • Adding to what @kaushalmodi said, you can always run stuff "after emacs is loaded" by doing (add-hook 'emacs-startup-hook (lambda () (normal-erase-is-backspace-mode +1))).
    – PythonNut
    Commented Feb 10, 2015 at 19:45
  • @NathanaelFarley Was this issue resolved? Commented Feb 12, 2015 at 15:17

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.