1

I would like to totally remap keybindings of Emacs. I would like to know helpful inforrmations about its pros and cons, some tips.

There are some things of particular interest:

  • How it influences other extensions/modes?
  • Are there any tools that could make remaping simpler, to see inter-dependencies between extensions...?
Jarek
  • 7,425
  • 15
  • 62
  • 89

3 Answers3

5

Consider defining a minor mode with its own keymap, and isolating your remapping to that one place. Compared to clobbering the global-map, it's more flexible and easier to test: you can enable and disable your set of bindings by toggling the mode dynamically without restarting; or enable it conditionally only for certain major modes. Keys defined in minor-mode will override major-mode specific bindings, though, which may or may not be what you want.

See 23.3.3 Defining Minor Modes.

huaiyuan
  • 26,129
  • 5
  • 57
  • 63
3

You might want to look at some of the documentation and discussions relating to a similar project, ErgoEmacs.

sanityinc
  • 15,002
  • 2
  • 49
  • 43
2

I think the cons will outway the pros. Many Emacs beginners react negatively to the default keybindings, and immediately set about changing them to their preferences. This introduces problems, as common usage patterns that you find in the docs and in third-party blogs/tutorials will need to be translated into your personal setup, which introduces another learning barrier for you to deal with.

Other problems may accumulate as you discover that bindings you changed in the first week conflict with features you discover months later. Now you have to re-rebind the keys and re-relearn the new bindings, or find different bindings for the new features.

I think you will be better off in the long run if you persevere with the defaults for a while, and then slowly rebind things as you gain experience. That will make it less likely that your modifications will have bad interactions later on.

Note that I am all in favor of customizing your key bindings, extensively if you like. However, I think that's a bad place to start learning Emacs.

If my argument doesn't convince you, then ergoemacs mentioned by sanityinc is one place to look for a contrasting view, as is the Emacs starter kit.

Tyler
  • 9,872
  • 2
  • 33
  • 57