Refer to the below Ivy mode info to effectively find and execute commands in Emacs
Operation | Command |
---|---|
Search text | swiper |
Execute command | counsel-M-x |
Find file | counsel-find-file |
Describe function | counsel-describe-function |
Describe variable | counsel-describe-variable |
Find library | counsel-find-library |
Info lookup symbol | counsel-info-lookup-symbol |
C-n
, C-p
, M-<
, M->
, C-v
, M-v
Key | Operation |
---|---|
RET | Accept current candidate |
C-M-j | Accept current input instead of current candidate |
C-’ | Faster machnism to select candidate than C-n and C-p |
C-M-m | Select candidate but keep minibuffer open for further input. C-M-p/n is faster. |
Key | Operation |
---|---|
M-n/p | Next/previous history element |
M-j | Insert word at point |
S-SPC | Narrowing |
C-r | Search commands history |
Operation | Key |
---|---|
Search in current manual | s |
Use isearch to search | C-s or C-M-s |
Search across all manuals | M-x info-apropos |
Navigate down/up | SPC/DEL |
Navigate back through history | l |
Visit node | m title |
This section points to various files for carrying out various operations in Emacs
Operation | Package |
---|---|
SVN | dsvn |
StackExchange website activity | Sx |
Web browsing | w3m |
Email, News | Gnus |
Left/right, up/down chars: C-f/b, C-p/n | Left/right words: M-f/b | Page up/down: C-v/M-v |
Move point to line on screen: C-u NUM M-r | Move focus to line: C-u NUM C-l | Scroll up/down: C-u NUM C-v/M-v |
Begin/End line: C-a/e | Begin/end sentence: M-a/e | Begin/end buffer: M-</> |
Move to line: M-g g NUM | Move to column: M-g TAB NUM | Move to mark: C-u C-SPC |
Set mark: C-SPC C-SPC (push to ring) | Store position: C-x r SPC R | Visit position: C-x r j R |
Find/replace: M-% SRC RET DEST RET | Find word under point: C-s C-w... C-s | Find ahead/behind: C-s/C-r (M-p/n srch hist) |
Match braces: C-M-f/b | Repeat find in same/reverse: C-s/r/DEL | Enter newline: C-q C-j |
Move to top/bottom line: C-u 0/-1 M-r |
Delete char/word: C-d/M-d | Delete char/word before: DEL/M-DEL | Undo/Redo: C-/ |
Join line with previous: M-^ | Indent/outdent: TAB | Comment/uncomment: M-; |
Transpose chars/words: C-t/M-t | Transpose lines: C-x C-t | |
Cut/Copy region: C-w/M-w | Kill/copy rect: C-x r k/M-w | Delete/Yank rect: C-x r d/y |
Newline after point/with spaces: C-o/C-M-o | One space around point: M-SPC | Upper/lower/Capitalize: M-u/l/c |
Toggle show/hide block: C-c @ c | Kill line/sentence: C-k/M-k | Yank/Cycle through: C-y/M-y |
Copy/paste region from R : C-x r s/i R | Select all: C-x h | Mark word/para: M-@/h |
Arrange para: M-q | Remove blank lines: M-x flush-lines ^\s-*$ | Kill till CHAR: M-z CHAR |
Open/save/save as: C-x C-f/C-s/C-w | Switch/list buffers: C-x b/C-b | Kill buffer: C-x k |
Close all but current: C-x 1 | Split hori/vert: C-x 2/3 | Scroll other wnd text: M-PGUP/PGDN |
Cur wnd tall/wide/narrow: C-x ^/}/{ | Window number: M-NUM/, NUM | Scroll bottom wnd text: C-M-v |
Open in dired mode: C-x d DIR | Move/Copy/Sort by name/date: R/C/s | Mark/unmark/zip-unzip files: m/u/z |
Edit dired buffer: C-x C-q (C-c C-c if done) | Remove ^M: M-x shell-strip_ctrl-m | Hide details: ( / dired-hide-details-mode |
Start/stop macro: C-x (/) | Run macro: C-u NUM C-x e | Save NUM in register: C-u 10 C-x r n R |
Increment R: C-x r \+ R | M-x name-last-kbd-macro name | M-x insert-kbd-macro insert named macro |
Emacs interpret/not: C-c C-j/C-k | Rename buffer: M-x rename-buffer | Command history/next/prev: M-r/C-s/C-r |
Remote sudo: /ssh:u1@h1 PIPE sudo:h1:FILE | Shell: M-x ansi-term | |
Prev/next command: M-p/M-n | Edit as sudo: C-x C-f /sudo::FILE | On remote: /ssh:user@host:FILE |
Next action commit (log buffer): C-x v v | In log buffer will commit file: C-c C-c | Show diff: C-x v = |
Vc dired mode (only changed files): C-x v d | Mark/unmark files/dir: m/u (same st: M/U ) | Visit file/dir in same/diff window: f/o |
Next/previous dir entry: TAB/S-TAB | Next/previous entry: n/p | Quit: q |
Search/Query replace fileset: S/Q | Revert file: C-x v u | Show revision history: C-x v l |
RevHist- move to next/prev entry: n/p | Same as before except next/prev file: N/P | Get latest revision: C-u C-x v v |
Switch to branch: C-x v r BR-NAME/C-u C-x v v | Hide up-to-date files: x | |
(e.g. ^/ProdName/branches/ProdBranch ) | Get latest: + |
Active key bindings - C-h b | Info search index: C-h i d m emacs i STR | Info search text: C-h i d m emacs s STR |
Help for func/cmd - C-h f/c | List functions with STR - C-h a STR |
Match single: . | Match zero/one or more: */+ | Match zero or one: ? | Match non-greedy: *?/+?/?? |
Match N times: \{N\} | Match M to N times: \{M,N\} | Match char set/range: [a-z0-9] | Match except range: [^a-z] |
Match begin/end: ^a/a$ | Match A or B: A\PIPEB | Grouping construct: \(STR\) | Backreference: \NUM |
Word boundary: \b/\</\> | Match whitespace: \s- | Replace: replace-regexp | Replace: string-replace |
Ask before repl: query-* |