|
|
@ -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 |
|
|
Prelude. It also adds an additional keymap that binds many of those |
|
|
extensions to keybindings. |
|
|
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` <kbd>C-c p f</kbd> |
|
|
|
|
|
* `projectile-grep` <kbd>C-c p g</kbd> |
|
|
|
|
|
* `projectile-switch-to-buffer` <kbd>C-c p b</kbd> |
|
|
|
|
|
* `projectile-multi-occur` <kbd>C-c p o</kbd> |
|
|
|
|
|
* `projectile-replace` <kbd>C-c p r</kbd> |
|
|
|
|
|
* `projectile-invalidate-cache` <kbd>C-c p i</kbd> |
|
|
|
|
|
* `projectile-regenerate-tags` <kbd>C-c p t</kbd> |
|
|
|
|
|
* `projectile-kill-buffers` <kbd>C-c p k</kbd> |
|
|
|
|
|
* `projectile-dired` <kbd>C-c p d</kbd> |
|
|
|
|
|
* `projectile-recentf` <kbd>C-c p e</kbd> |
|
|
|
|
|
* `projectile-ack` <kbd>C-c p a</kbd> |
|
|
|
|
|
* `projectile-compile-project` <kbd>C-c p l</kbd> |
|
|
|
|
|
* `projectile-test-project` <kbd>C-c p p</kbd> |
|
|
|
|
|
|
|
|
### Automatic package installation |
|
|
### Automatic package installation |
|
|
|
|
|
|
|
|
The default Prelude installation comes with a bare minimum of |
|
|
The default Prelude installation comes with a bare minimum of |
|
|
|