god Mode–no more RSI (Repetitive Strain Injury)
https://github.com/emacsorphanage/god-mode
What is it?
A global minor mode for entering Emacs commands without modifier keys. It is similar to Vim's separation of command mode and insert mode. All existing key bindings will work in God mode. It is only there to reduce your usage of modifier keys.
Setup
(require 'god-mode) (god-mode) (global-set-key (kbd "<escape>") #'god-local-mode)
Before: C-p C-k C-n M-^ ) C-j C-y M-r C-x z z M-2 M-f C-x C-s After: p k n g ^ ) j y g r . . 2 g f x s
To get it working on all buffers including Magit and Dired:
(global-set-key (kbd "<escape>") #'god-mode-all) (setq god-exempt-major-modes nil) (setq god-exempt-predicates nil)
Function Keys will be affected by God Mode
Add this to your init.el to get them back to normal. Otherwise, you will need to bind CONTROL to them as in:
(global-set-key (kbd "C-<f5>") 'your-desired-function)
(setq god-mode-enable-function-key-translation nil)
C-x C-s - Save >> x s