-
Notifications
You must be signed in to change notification settings - Fork 0
/
kb-emacs
51 lines (43 loc) · 1.21 KB
/
kb-emacs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Emacs Keybindings
Assuming that you are use evil-mode
## Fundamental
* C-x C-c - save and exit emacs
* :wq - save and exit buffer
#Buffer
* C-x C-b - list buffer
## Windows
* C-w h - move to left window
* C-w l - move to right window
* C-w j - move to window above
* C-w k - move to window below
* C-w v - create window vertically
* C-w S - create window horizontal
* C-w q - remove window
## Ranger
* zh - show hidden files
* h - go out of dir
* l - go in to dir or open file
* j - go to file or dir below
* k - go to file or dir above
* t - toggle mark/unmark
* :mkdir - new dir
* :toutch - new file
* R - rename
* D - delete
## Term
You can just juse normal vim kebindings to navigate trew the output.
To write a command just use "i".
* i - Switch to line mode
* shift insert - Past to terminal
## Magit
- M-x magit-checkout <branch name> - Checkout a spesific branch
- M-x magit-branch_and_checkout <branch from> <branch new> - Checkout a spesific branch
- M-x magit-pull - runs git pull
- M-x magit-status - show the git status
-- s - to stage
-- i - ignore
-- c c - commit before
-- C-c C-c - commit
## Mode spesific
### Latex
* C-c C-e (TAB) - Create template enviroment, TAB autocompleates and list (ex: itemize)