commit
45ee90ad6f
3 changed files with 22 additions and 2 deletions
22
README.md
22
README.md
|
@ -280,6 +280,7 @@ Keybinding | Description
|
||||||
<kbd>C-c g</kbd> | Search in Google for the thing under point (or an interactive query).
|
<kbd>C-c g</kbd> | Search in Google for the thing under point (or an interactive query).
|
||||||
<kbd>C-c G</kbd> | Search in GitHub for the thing under point (or an interactive query).
|
<kbd>C-c G</kbd> | Search in GitHub for the thing under point (or an interactive query).
|
||||||
<kbd>C-c y</kbd> | Search in YouTube for the thing under point (or an interactive query).
|
<kbd>C-c y</kbd> | Search in YouTube for the thing under point (or an interactive query).
|
||||||
|
<kbd>C-c U</kbd> | Search in Duckduckgo for the thing under point (or an interactive query).
|
||||||
<kbd>C-S-RET</kbd> or <kbd>Super-o</kbd> | Insert an empty line above the current line and indent it properly.
|
<kbd>C-S-RET</kbd> or <kbd>Super-o</kbd> | Insert an empty line above the current line and indent it properly.
|
||||||
<kbd>S-RET</kbd> or <kbd>M-o</kbd> | Insert an empty line and indent it properly (as in most IDEs).
|
<kbd>S-RET</kbd> or <kbd>M-o</kbd> | Insert an empty line and indent it properly (as in most IDEs).
|
||||||
<kbd>C-S-up</kbd> or <kbd>M-S-up</kbd> | Move the current line or region up.
|
<kbd>C-S-up</kbd> or <kbd>M-S-up</kbd> | Move the current line or region up.
|
||||||
|
@ -290,14 +291,28 @@ Keybinding | Description
|
||||||
<kbd>C-c u</kbd> | Open URL in your default browser.
|
<kbd>C-c u</kbd> | Open URL in your default browser.
|
||||||
<kbd>C-c e</kbd> | Eval a bit of Emacs Lisp code and replace it with its result.
|
<kbd>C-c e</kbd> | Eval a bit of Emacs Lisp code and replace it with its result.
|
||||||
<kbd>C-c s</kbd> | Swap two active windows.
|
<kbd>C-c s</kbd> | Swap two active windows.
|
||||||
|
<kbd>C-c D</kbd> | Delete current file and buffer.
|
||||||
<kbd>C-c d</kbd> | Duplicate the current line (or region).
|
<kbd>C-c d</kbd> | Duplicate the current line (or region).
|
||||||
<kbd>C-c M-d</kbd> | Duplicate and comment the current line (or region).
|
<kbd>C-c M-d</kbd> | Duplicate and comment the current line (or region).
|
||||||
<kbd>C-c r</kbd> | Rename the currently visited file and buffer.
|
<kbd>C-c r</kbd> | Rename the currently visited file and buffer.
|
||||||
<kbd>C-c t</kbd> | Open a terminal emulator (`ansi-term`).
|
<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 k</kbd> | Kill all open buffers except the one you're currently in.
|
||||||
|
<kbd>C-c TAB</kbd> | Indent and copy region to clipboard
|
||||||
<kbd>C-c h</kbd> | Open Helm (available if you've enabled the `prelude-helm` module).
|
<kbd>C-c h</kbd> | Open Helm (available if you've enabled the `prelude-helm` module).
|
||||||
<kbd>C-c +</kbd> | Increment integer at point.
|
<kbd>C-c I</kbd> | Open user's init file.
|
||||||
<kbd>C-c -</kbd> | Decrement integer at point.
|
<kbd>C-c S</kbd> | Open shell's init file.
|
||||||
|
<kbd>C-h C-m</kbd> | Display key bindings of current major mode and descriptions of every binding.
|
||||||
|
<kbd>C-c . +</kbd> | Increment integer at point. Default is +1.
|
||||||
|
<kbd>C-c . -</kbd> | Decrement integer at point. Default is -1.
|
||||||
|
<kbd>C-c . *</kbd> | Multiply integer at point. Default is *2.
|
||||||
|
<kbd>C-c . /</kbd> | Divide integer at point. Default is /2.
|
||||||
|
<kbd>C-c . \</kbd> | Modulo integer at point. Default is modulo 2.
|
||||||
|
<kbd>C-c . ^</kbd> | Power to the integer at point. Default is ^2.
|
||||||
|
<kbd>C-c . <</kbd> | Left-shift integer at point. Default is 1 position to the left.
|
||||||
|
<kbd>C-c . ></kbd> | Right-shift integer at point. Default is 1 position to the right.
|
||||||
|
<kbd>C-c . #</kbd> | Convert integer at point to specified base. Default is 10.
|
||||||
|
<kbd>C-c . %</kbd> | Replace integer at point with another specified integer.
|
||||||
|
<kbd>C-c . '</kbd> | Perform arithmetic operations on integer at point. User specifies the operator.
|
||||||
<kbd>Super-r</kbd> | Recent files
|
<kbd>Super-r</kbd> | Recent files
|
||||||
<kbd>Super-x</kbd> | Expand region
|
<kbd>Super-x</kbd> | Expand region
|
||||||
<kbd>Super-j</kbd> | Join lines
|
<kbd>Super-j</kbd> | Join lines
|
||||||
|
@ -307,6 +322,9 @@ Keybinding | Description
|
||||||
<kbd>Super-m f</kbd> | Magit file log
|
<kbd>Super-m f</kbd> | Magit file log
|
||||||
<kbd>Super-m b</kbd> | Magit blame mode
|
<kbd>Super-m b</kbd> | Magit blame mode
|
||||||
|
|
||||||
|
**Note**: For various arithmetic operations, the prefix `C-c .` only needs to be pressed once for the first operation.
|
||||||
|
For subsequent operations, only the appropriate operations (i.e. `+`, `-`, `*`, `/`... needs to be pressed).
|
||||||
|
|
||||||
#### OSX modifier keys
|
#### OSX modifier keys
|
||||||
|
|
||||||
Prelude does not mess by default with the standard mapping of `Command` (to `Super`) and `Option` (to `Meta`).
|
Prelude does not mess by default with the standard mapping of `Command` (to `Super`) and `Option` (to `Meta`).
|
||||||
|
|
|
@ -65,6 +65,7 @@
|
||||||
(define-key map (kbd "C-c h") 'helm-prelude)
|
(define-key map (kbd "C-c h") 'helm-prelude)
|
||||||
(define-key map (kbd "C-c I") 'prelude-find-user-init-file)
|
(define-key map (kbd "C-c I") 'prelude-find-user-init-file)
|
||||||
(define-key map (kbd "C-c S") 'prelude-find-shell-init-file)
|
(define-key map (kbd "C-c S") 'prelude-find-shell-init-file)
|
||||||
|
(define-key map 'help-command (kbd "C-m") 'discover-my-major)
|
||||||
;; make some use of the Super key
|
;; make some use of the Super key
|
||||||
(define-key map [?\s-d] 'projectile-find-dir)
|
(define-key map [?\s-d] 'projectile-find-dir)
|
||||||
(define-key map [?\s-p] 'projectile-switch-project)
|
(define-key map [?\s-p] 'projectile-switch-project)
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
anzu
|
anzu
|
||||||
browse-kill-ring
|
browse-kill-ring
|
||||||
dash
|
dash
|
||||||
|
discover-my-major
|
||||||
diff-hl
|
diff-hl
|
||||||
diminish
|
diminish
|
||||||
easy-kill
|
easy-kill
|
||||||
|
|
Loading…
Reference in a new issue