diff --git a/README.md b/README.md index 21d641f..508192e 100644 --- a/README.md +++ b/README.md @@ -232,6 +232,12 @@ Keybinding | Description C-c t | Open a terminal emulator (`ansi-term`). C-c k | Kill all open buffers except the one you're currently in. C-c h | Open Helm (a useful means of navigating your buffers and project files). +Super-r | Recent files +Super-x | Expand region +Super-j | Join lines +Super-k | Kill whole line +Super-m | Magit status +Super-o | Open line above current line #### Projectile @@ -257,6 +263,15 @@ Keybinding | Description C-c p z | Adds the currently visited to the cache. C-c p s | Display a list of known projects you can switch to. +Prelude adds some extra keybindings: + +Keybinding | Command +-------------------|------------------------------------------------------------ +Super-f | Find file in project +Super-d | Find directory in project +Super-g | Run grep on project +Super-p | Switch projects + If you ever forget any of Projectile's keybindings just do a: C-c p C-h diff --git a/core/prelude-global-keybindings.el b/core/prelude-global-keybindings.el index 901837b..2cbff9b 100644 --- a/core/prelude-global-keybindings.el +++ b/core/prelude-global-keybindings.el @@ -122,20 +122,6 @@ (key-chord-mode +1) -;; make some use of the Super key -(define-key global-map [?\s-d] 'projectile-find-dir) -(define-key global-map [?\s-e] 'er/expand-region) -(define-key global-map [?\s-f] 'projectile-find-file) -(define-key global-map [?\s-g] 'projectile-grep) -(define-key global-map [?\s-j] 'prelude-top-join-line) -(define-key global-map [?\s-k] 'prelude-kill-whole-line) -(define-key global-map [?\s-l] 'goto-line) -(define-key global-map [?\s-m] 'magit-status) -(define-key global-map [?\s-o] 'prelude-open-line-above) -(define-key global-map [?\s-w] 'delete-frame) -(define-key global-map [?\s-x] 'exchange-point-and-mark) -(define-key global-map [?\s-p] 'projectile-switch-project) - (provide 'prelude-global-keybindings) ;;; prelude-global-keybindings.el ends here diff --git a/core/prelude-mode.el b/core/prelude-mode.el index 70cd31f..26ca031 100644 --- a/core/prelude-mode.el +++ b/core/prelude-mode.el @@ -60,6 +60,19 @@ (define-key map (kbd "C-c k") 'prelude-kill-other-buffers) (define-key map (kbd "C-c TAB") 'prelude-indent-rigidly-and-copy-to-clipboard) (define-key map (kbd "C-c h") 'helm-prelude) + ;; make some use of the Super key + (define-key map [?\s-d] 'projectile-find-dir) + (define-key map [?\s-p] 'projectile-switch-project) + (define-key map [?\s-f] 'projectile-find-file) + (define-key map [?\s-g] 'projectile-grep) + + (define-key map (kbd "s-r") 'prelude-recentf-ido-find-file) + (define-key map [?\s-x] 'er/expand-region) + (define-key map [?\s-j] 'prelude-top-join-line) + (define-key map [?\s-k] 'prelude-kill-whole-line) + (define-key map [?\s-m] 'magit-status) + (define-key map [?\s-o] 'prelude-open-line-above) + map) "Keymap for Prelude mode.")