From 03ee9319b947f892b8a9a2932016bb729af72e5f Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Sat, 8 Dec 2012 15:23:33 +0200 Subject: [PATCH] added a basic list of useful keybindings available in Prelude --- README.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/README.md b/README.md index a341c94..e637615 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,64 @@ which collects some of the additional functionality added by Prelude. It also adds an additional keymap that binds many of those extensions to keybindings. +### Keymap + +#### Global + +* `C-M-h` - `backward-kill-word` (as in Bash/Zsh) +* `C-x \` - `align-regexp` +* `C-+` - `text-scale-increase` +* `C--` - `text-scale-decrease` +* `C-x O` - return you to the previous window (the inverse of `other-window` (`C-x o`)) +* `C-x ^` - `join-line` +* `C-x p` - `proced` (manage processes form Emacs, works only in Linux) +* `C-x m` - start eshell +* `C-x M-m` - start your default shell +* `C-x C-m` - sames as `M-x` +* `C-h A` - `apropos` (search in all Emacs symbols) +* `M-\` - `hippie-expand` (a replacement for the default `dabbrev-expand`) +* `C-x C-b` - `ibuffer` (a replacement for the default `buffer-list`) +* `F12` - toggle the Emacs menu bar +* `C-x g` - open Magit's status buffer +* `C-=` - `expand-region` (incremental text selection) + +#### Prelude Mode + +* `C-c o` - open the currently visited file with external program +* `C-c g` - search in Google for the thing under point (or an interactive query) +* `shift+return` - insert an empty line and indent it properly (as in most IDEs) +* `control+shift+up` - move the current line up +* `control+shift+down` - move the current line down +* `C-c n` - fix indentation in buffer and strip whitespace +* `C-c f` - open recently visitted file +* `C-M-\` - indent region (if selected) or the entire buffer +* `C-c u` - open URL in your default browser +* `C-c e` - eval a bit of Emacs Lisp code and replace it with its result +* `C-c s` - swap two active windows +* `C-c d` - duplicate the current line (or region) +* `C-c r` - rename the currently visited file and buffer +* `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) + +#### Projectile + +Here's a list of the interactive Emacs Lisp functions, provided by projectile: + +* `projectile-find-file` C-c p f +* `projectile-grep` C-c p g +* `projectile-switch-to-buffer` C-c p b +* `projectile-multi-occur` C-c p o +* `projectile-replace` C-c p r +* `projectile-invalidate-cache` C-c p i +* `projectile-regenerate-tags` C-c p t +* `projectile-kill-buffers` C-c p k +* `projectile-dired` C-c p d +* `projectile-recentf` C-c p e +* `projectile-ack` C-c p a +* `projectile-compile-project` C-c p l +* `projectile-test-project` C-c p p + ### Automatic package installation The default Prelude installation comes with a bare minimum of