Some long overdue keybinding doc improvements
This commit is contained in:
parent
64aa0ee0c5
commit
d235c25acd
1 changed files with 59 additions and 46 deletions
105
README.md
105
README.md
|
@ -182,59 +182,72 @@ extensions to keybindings.
|
||||||
|
|
||||||
#### Global
|
#### Global
|
||||||
|
|
||||||
* `C-M-h` - `backward-kill-word` (as in Bash/Zsh)
|
Keybinding | Description
|
||||||
* `C-x \` - `align-regexp`
|
-------------------|------------------------------------------------------------
|
||||||
* `C-+` - `text-scale-increase`
|
<kbd>C-M-h</kbd> | Kill the previous word(`backward-kill-word`). (as in Bash/Zsh)
|
||||||
* `C--` - `text-scale-decrease`
|
<kbd>C-x \</kbd> | `align-regexp`
|
||||||
* `C-x O` - return you to the previous window (the inverse of `other-window` (`C-x o`))
|
<kbd>C-+</kbd> | Increase font size(`text-scale-increase`).
|
||||||
* `C-x ^` - `join-line`
|
<kbd>C--</kbd> | Decrease font size(`text-scale-decrease`).
|
||||||
* `C-x p` - `proced` (manage processes form Emacs, works only in Linux)
|
<kbd>C-x O</kbd> | Go back to previous window (the inverse of `other-window` (`C-x o`)).
|
||||||
* `C-x m` - start eshell
|
<kbd>C-x ^</kbd> | Join two lines into one(`join-line`).
|
||||||
* `C-x M-m` - start your default shell
|
<kbd>C-x p</kbd> | Start `proced` (manage processes form Emacs, works only in Linux).
|
||||||
* `C-x C-m` - sames as `M-x`
|
<kbd>C-x m</kbd> | Start `eshell`.
|
||||||
* `C-h A` - `apropos` (search in all Emacs symbols)
|
<kbd>C-x M-m</kbd> | Start your default shell.
|
||||||
* `M-\` - `hippie-expand` (a replacement for the default `dabbrev-expand`)
|
<kbd>C-x C-m</kbd> | Alias for `M-x`.
|
||||||
* `C-x C-b` - `ibuffer` (a replacement for the default `buffer-list`)
|
<kbd>C-h A</kbd> | Run `apropos` (search in all Emacs symbols).
|
||||||
* `F12` - toggle the Emacs menu bar
|
<kbd>M-\</kbd> | Run `hippie-expand` (a replacement for the default `dabbrev-expand`).
|
||||||
* `C-x g` - open Magit's status buffer
|
<kbd>C-x C-b</kbd> | Open `ibuffer` (a replacement for the default `buffer-list`).
|
||||||
* `C-=` - `expand-region` (incremental text selection)
|
<kbd>F12</kbd> | Toggle the Emacs menu bar.
|
||||||
|
<kbd>C-x g</kbd> | Open Magit's status buffer.
|
||||||
|
<kbd>C-=</kbd> | Run `expand-region` (incremental text selection).
|
||||||
|
|
||||||
#### Prelude Mode
|
#### Prelude Mode
|
||||||
|
|
||||||
* `C-c o` - open the currently visited file with external program
|
Keybinding | Description
|
||||||
* `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)
|
<kbd>C-c o</kbd> | Open the currently visited file with an external program.
|
||||||
* `control+shift+up` - move the current line up
|
<kbd>C-c g</kbd> | Search in Google for the thing under point (or an interactive query).
|
||||||
* `control+shift+down` - move the current line down
|
<kbd>S-RET</kbd> | Insert an empty line and indent it properly (as in most IDEs).
|
||||||
* `C-c n` - fix indentation in buffer and strip whitespace
|
<kbd>C-S-up</kbd> | Move the current line up.
|
||||||
* `C-c f` - open recently visitted file
|
<kbd>C-S-down</kbd> | Move the current line down.
|
||||||
* `C-M-\` - indent region (if selected) or the entire buffer
|
<kbd>C-c n</kbd> | Fix indentation in buffer and strip whitespace.
|
||||||
* `C-c u` - open URL in your default browser
|
<kbd>C-c f</kbd> | Open recently visitted file.
|
||||||
* `C-c e` - eval a bit of Emacs Lisp code and replace it with its result
|
<kbd>C-M-\</kbd> | Indent region (if selected) or the entire buffer.
|
||||||
* `C-c s` - swap two active windows
|
<kbd>C-c u</kbd> | Open URL in your default browser.
|
||||||
* `C-c d` - duplicate the current line (or region)
|
<kbd>C-c e</kbd> | Eval a bit of Emacs Lisp code and replace it with its result.
|
||||||
* `C-c r` - rename the currently visited file and buffer
|
<kbd>C-c s</kbd> | Swap two active windows.
|
||||||
* `C-c t` - open a terminal emulator (`ansi-term`)
|
<kbd>C-c d</kbd> | Duplicate the current line (or region).
|
||||||
* `C-c k` - kill all open buffers except the one you're currently in
|
<kbd>C-c r</kbd> | Rename the currently visited file and buffer.
|
||||||
* `C-c h` - open Helm (a useful means of navigating your buffers and project files)
|
<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).
|
||||||
|
|
||||||
#### Projectile
|
#### Projectile
|
||||||
|
|
||||||
Here's a list of the interactive Emacs Lisp functions, provided by projectile:
|
Here's a list of functionality provided by [Projectile](https://github.com/bbatsov/prelude):
|
||||||
|
|
||||||
* `projectile-find-file` <kbd>C-c p f</kbd>
|
Keybinding | Description
|
||||||
* `projectile-grep` <kbd>C-c p g</kbd>
|
-------------------|------------------------------------------------------------
|
||||||
* `projectile-switch-to-buffer` <kbd>C-c p b</kbd>
|
<kbd>C-c p f</kbd> | Display a list of all files in the project. With a prefix argument it will clear the cache first.
|
||||||
* `projectile-multi-occur` <kbd>C-c p o</kbd>
|
<kbd>C-c p T</kbd> | Display a list of all test files(specs, features, etc) in the project.
|
||||||
* `projectile-replace` <kbd>C-c p r</kbd>
|
<kbd>C-c p g</kbd> | Run grep on the files in the project.
|
||||||
* `projectile-invalidate-cache` <kbd>C-c p i</kbd>
|
<kbd>C-c p b</kbd> | Display a list of all project buffers currently open.
|
||||||
* `projectile-regenerate-tags` <kbd>C-c p t</kbd>
|
<kbd>C-c p o</kbd> | Runs `multi-occur` on all project buffers currently open.
|
||||||
* `projectile-kill-buffers` <kbd>C-c p k</kbd>
|
<kbd>C-c p r</kbd> | Runs interactive query-replace on all files in the projects.
|
||||||
* `projectile-dired` <kbd>C-c p d</kbd>
|
<kbd>C-c p i</kbd> | Invalidates the project cache (if existing).
|
||||||
* `projectile-recentf` <kbd>C-c p e</kbd>
|
<kbd>C-c p R</kbd> | Regenerates the projects `TAGS` file.
|
||||||
* `projectile-ack` <kbd>C-c p a</kbd>
|
<kbd>C-c p k</kbd> | Kills all project buffers.
|
||||||
* `projectile-compile-project` <kbd>C-c p l</kbd>
|
<kbd>C-c p d</kbd> | Opens the root of the project in `dired`.
|
||||||
* `projectile-test-project` <kbd>C-c p p</kbd>
|
<kbd>C-c p e</kbd> | Shows a list of recently visited project files.
|
||||||
|
<kbd>C-c p a</kbd> | Runs `ack` on the project. Requires the presence of `ack-and-a-half`.
|
||||||
|
<kbd>C-c p l</kbd> | Runs a standard compilation command for your type of project.
|
||||||
|
<kbd>C-c p p</kbd> | Runs a standard test command for your type of project.
|
||||||
|
<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.
|
||||||
|
|
||||||
|
If you ever forget any of Projectile's keybindings just do a:
|
||||||
|
|
||||||
|
<kbd>C-c p C-h</kbd>
|
||||||
|
|
||||||
### Automatic package installation
|
### Automatic package installation
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue