diff options
| author | Bozhidar Batsov <bozhidar@batsov.com> | 2015-07-13 09:55:29 +0300 |
|---|---|---|
| committer | Bozhidar Batsov <bozhidar@batsov.com> | 2015-07-13 09:55:29 +0300 |
| commit | 7d12d1cdd96a4296dba0a2140fc05b7977675a55 (patch) | |
| tree | 5eaf4cb1ecb9932dbc43adb21f56bbce768744a2 /README.md | |
| parent | d03e28bfa0dfce4759038396c551724be9dad6a7 (diff) | |
[Fix #512] Improve the documentation about adding an alternative prefix keybinding
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -394,9 +394,13 @@ It is also possible to add additional commands to commands. Here's an example that adds `super-p` as the extra prefix: ```el -(define-key some-keymap (kbd "s-p") 'projectile-command-map) +(define-key projectile-mode-map (kbd "s-p") 'projectile-command-map) ``` +You can also bind the `projectile-command-map` to any other map you'd +like (including the global keymap). Prelude does this for its +[prelude-mode-map](https://github.com/bbatsov/prelude/blob/master/core/prelude-mode.el#L68). + For some common commands you might want to take a little shortcut and leverage the fairly unused `Super` key (by default `Command` on Mac keyboards and `Windows` on Win keyboards). Here's something you can |
