ergoemacs / ergoemacs-mode

ergoemacs-mode
ergoemacs.github.io/
GNU General Public License v3.0
293 stars 35 forks source link

Can't restore standard behavior or Alt+backspace #303

Closed pdg137 closed 10 years ago

pdg137 commented 10 years ago

In my opinion, the Ergoemacs redefinition of Alt+backspace is annoying, so I have attempted to restore it by running

(global-set-key (kbd "M-<backspace>") 'backward-kill-word)

After this, C-h k M-backspace shows the definition I chose, but actually pressing M-backspace unexpectedly still runs some kind of undo command, and I can't figure out how to fix it. M-e works normally.

Problem observed on e7c66f24e2 and emacs 24.3.1.

mattfidler commented 10 years ago

I actually agree with the sillyness of Alt+backspace. But it is a standard shortcut :(. See:

http://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts

So I broke it out and made it a component that can be turned on or off by the ergoemacs-mode menu or by issuing

(ergoemacs-remove 'alt-backspace-is-undo)

It should work with the global-set-key as well; I'm unsure why its not working. But I do have a work around for now.

xahlee commented 10 years ago

not sure that's a good option. It's only standard in Windows (and i think it's newish?) Not on Mac or Linux. Windows and desktop are less and used these days.

also, by itself doesn't make ergonomic sense, unless one has special keyboard such as kinesis etc where Backspace is thumb or some other easy key. But on special keyboard, one have easy undo as well without using Alt+backspace.

i'd vote to remove this option, since if users want that, they can do it themselves.

On Wed, Aug 27, 2014 at 6:13 AM, Matthew Fidler notifications@github.com wrote:

I actually agree with the sillyness of Alt+backspace. But it is a standard shortcut :(. See:

http://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts

So I broke it out and made it a component that can be turned on or off by the ergoemacs-mode menu or by issuing

(ergoemacs-remove 'alt-backspace-is-undoe)

It should work with the global-set-key as well; I'm unsure why its not working. But I do have a work around for now.

— Reply to this email directly or view it on GitHub https://github.com/ergoemacs/ergoemacs-mode/issues/303#issuecomment-53569864 .

mattfidler commented 10 years ago

Thats fine. I have turned it off by default for now. Since it is a standard key, it is part of the theme, but can be turned on or off from the menu for those users who like it.

pdg137 commented 10 years ago

That fixes the issue for me, thanks.