Update keybindings a bit
This commit is contained in:
parent
bdb9969ea2
commit
cc29e0f2bb
3 changed files with 28 additions and 14 deletions
15
README.md
15
README.md
|
@ -232,6 +232,12 @@ Keybinding | Description
|
|||
<kbd>C-c t</kbd> | Open a terminal emulator (`ansi-term`).
|
||||
<kbd>C-c k</kbd> | Kill all open buffers except the one you're currently in.
|
||||
<kbd>C-c h</kbd> | Open Helm (a useful means of navigating your buffers and project files).
|
||||
<kbd>Super-r</kbd> | Recent files
|
||||
<kbd>Super-x</kbd> | Expand region
|
||||
<kbd>Super-j</kbd> | Join lines
|
||||
<kbd>Super-k</kbd> | Kill whole line
|
||||
<kbd>Super-m</kbd> | Magit status
|
||||
<kbd>Super-o</kbd> | Open line above current line
|
||||
|
||||
#### Projectile
|
||||
|
||||
|
@ -257,6 +263,15 @@ Keybinding | Description
|
|||
<kbd>C-c p z</kbd> | Adds the currently visited to the cache.
|
||||
<kbd>C-c p s</kbd> | Display a list of known projects you can switch to.
|
||||
|
||||
Prelude adds some extra keybindings:
|
||||
|
||||
Keybinding | Command
|
||||
-------------------|------------------------------------------------------------
|
||||
<kbd>Super-f</kbd> | Find file in project
|
||||
<kbd>Super-d</kbd> | Find directory in project
|
||||
<kbd>Super-g</kbd> | Run grep on project
|
||||
<kbd>Super-p</kbd> | Switch projects
|
||||
|
||||
If you ever forget any of Projectile's keybindings just do a:
|
||||
|
||||
<kbd>C-c p C-h</kbd>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.")
|
||||
|
||||
|
|
Loading…
Reference in a new issue