This is a draft cheat sheet. It is a work in progress and is not finished yet.
Editing
C-x C-o |
:g/^$/d |
Delete blank lines |
C-x 8 RET |
|
Find and insert unicode char |
C-x l |
|
Count lines in page |
Projects
SPC p p |
|
Open project |
SPC SPC |
SPC p f |
Find file in project |
SPC . |
SPC f f |
Find file in folder |
SPC p r |
|
Find recent project files |
SPC p k |
|
Kill project buffers (close project) |
SPC p s |
|
Save project files |
SPC p F |
|
Find file in other project |
Buffers
SPC b B |
SPC < |
Switch buffer |
SPC b b |
|
Switch workspace buffer |
SPC b d |
SPC b k |
Kill buffer |
SPC b K |
|
kill all buffer |
SPC b h |
Custom config |
Open dashboard |
SPC b n |
SPC b ] |
Next buffer |
SPC b p |
SPC b [ |
Previous buffer |
SPC b x |
|
Pop up scratch buffer |
SPC b X |
|
Switch to scratch buffer |
SPC b s |
|
Save buffer |
SPC b S |
|
Save all buffers |
SPC b u |
|
Save buffer as root |
Functions
confirm-kill-processes |
"nil" -> no confirmation default: "t" can be used with func yes-or-no-p |
Exiting emacs |
what-line |
|
Display the line number of point |
count-words |
|
Display # lines/words/char |
count-words-region |
|
Same as above but in region |
eros-eval-last-sexp |
C-x C-e / SPC m e e |
Overlays output of elisp expression |
|
|
Windows
SPC w V |
Split vertically and follow |
SPC w v |
Split vertically |
SPC w S |
Split horizontally and follow |
SPC w s |
Split horizontally |
SPC w r |
Rotate windows |
Workspaces
SPC TAB TAB |
Display tab bar |
SPC TAB N |
New named workspace (switch from current workspace) |
SPC TAB {n} |
Switch to workspace {n} |
SPC TAB s |
Save workspace to file |
SPC TAB l |
Load workspace from file |
SPC TAB . |
Switch to workspace (display list) |
Files
SPC . |
SPC f f |
Find file |
SPC f P |
|
Browse private config |
SPC f D |
|
Delete file |
SPC f s |
|
Save file |
SPC f S |
|
Save file as |
SPC f R |
|
Rename/move file |
Bookmarks
SPC b m |
Set bookmark |
SPC RET |
Open bookmark |
SPC b M |
Delete bookmark |
Misc
SPC h t |
Choose theme |
C-+/C-- |
Increase/Decrease front |
F10 |
Open global menu |
q |
Quit debugger |
|
|
Documentation
SPC h c |
Describe key briefly |
SPC h k |
Describe key (show doc about key) |
SPC h b b |
Show existing bindings |
SPC h f |
Describe function (show function doc) |
SPC h a |
Find commands matching arg |
SPC h w |
Find keybindings of arg |
SPC h p |
Describe package |
SPC h e |
View message buffer |
SPC h v |
Describe variable |
ESS (R)
SPC ' |
R console |
SPC m l |
Eval ligne |
SPC m r |
Eval region |
SPC m h h |
Object doc |
Org mode
z i |
org-display-inline-image |
SPC m l t |
org-toggle-link-display (ex: img links) |
Magit
SPC g C |
Clone repo |
SPC g F |
Fetch repo |
SPC g c c |
Create new commit |
SPC g S |
Stage file |
Elisp
SPC m e e |
Overlays output of elisp expression |
C-x C-e |
Overlays output of elisp expression from anywhere |
SPC o r |
Open repl in new window |
SPC o R |
Open repl in same window |
Docker
SPC o D |
Open docker menu |
C-c C-b |
Build dockerfile (ineeds dockerfile mode) |
|