Guru mode disables (or warns on) some generic keybindings and suggests the use of the established and more efficient Emacs alternatives instead. Here are a few examples:
- It will teach you to avoid the arrow keys and use keybindings like
- It will teach you to avoid keybindings using Home, End, etc.
- It will teach you to avoid Delete/Backspace.
guru-mode.el somewhere in your
load-path. I favour the
(add-to-list 'load-path "~/emacs.d/vendor") (require 'guru-mode)
If you're an Emacs 24 user or you have a recent version of package.el you can install guru-mode from the MELPA repository.
guru-mode is naturally part of the
Emacs Prelude. If you're a Prelude
guru-mode is already properly configured and ready for
You can enable
guru-mode globally like this:
Most likely you'd like to enable
guru-mode only in specific modes
prog-mode in Emacs 24):
(add-hook 'prog-mode-hook 'guru-mode)
If you only want to get warnings when you the arrow keys use the following config:
(setq guru-warn-only t)
You can extend the list of keybindings covered by
guru-mode like this:
(add-to-list 'guru-affected-bindings-list '("<C-left>" "M-b" left-word))
The list you're adding is of the format (discouraged keybinding, recommended keybinding, command).
guru-mode operates only on global keybindings and it will never interfere with
some mode-specific keybindings.
Check out the project's issue list a list of unresolved issues. By the way - feel free to fix any of them and send me a pull request. :-)
Here's a list of all the people who have contributed to the development of guru-mode.
Bugs & Improvements
Bug reports and suggestions for improvements are always welcome. GitHub pull requests are even better! :-)