aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2015-07-13 09:55:29 +0300
committerBozhidar Batsov <bozhidar@batsov.com>2015-07-13 09:55:29 +0300
commit7d12d1cdd96a4296dba0a2140fc05b7977675a55 (patch)
tree5eaf4cb1ecb9932dbc43adb21f56bbce768744a2 /README.md
parentd03e28bfa0dfce4759038396c551724be9dad6a7 (diff)
[Fix #512] Improve the documentation about adding an alternative prefix keybinding
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index cef8eec..98e0825 100644
--- a/README.md
+++ b/README.md
@@ -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