emacs --daemon
to run in the background.
emacsclient.emacs24 <filename/dirname>
to open in terminal
M-m
and SPC
can be used interchangeably.
- Undo -
C-/
- Redo -
C-?
- Change case: 1. Camel Case :
M-c
2. Upper Case :M-u
3. Lower Case :M-l
- Helm-projectile find file :
SPC p f
- Helm-projectile-grep :
SPC p s g
- Toggle Auto complete :
SPC t a
- Neotree root directory :
SPC p t
- Linum-relative :
SPC t r
- Ace-jump mode :
SPC SPC
*. Helm-bookmarks :SPC h b
- Iedit mode : 1.
M-<left>
,M-<right>
to navigate, 2.C-;
to select/deselct all for edit at once - Expand Region 1. Expand:
SPC v
2. Contract:SPC V
- Winner mode: 1. Undo :
C-c <left>
2. Redo :C-c <right>
- Toggle Aggressive Indent Mode :
SPC t I
- Open file in new buffer after
SPC p f
:C-c o
- Dired mode : 1. Copy file :
C
2. Delete the file :D
3. Rename the file :R
4. Create a new directory :+
5. Reload directory listing :g
- Search : 1. The last searched query :
C-s C-s
2. The string under the cursor :C-s C-w
- Un-indent by 4 spaces :
C-u -4 C-x TAB
- Open emacs dired mode:
SPC a d
- Erase contents of buffer:
SPC b e
- Replace contents of buffer with the contents of the clipboard:
SPC b P
- Copy contents of the whole buffer:
SPC b Y
- Open current file directory:
SPC f j
- Rename current file:
SPC f R
- Indent region/buffer:
SPC j =
- Kill all buffers (of current project):
SPC p k
- Reload spacemacs conf:
SPC f e R
- Kill all buffers except the current one:
SPC b K
- Go to conf file (~/.spacemacs):
SPC f e d
- Toggle display fill-column(column 80):
SPC t f
- Enable/Disable read-only mode
C-x C-q
- Go one level up in directory:
C-x C-j
- Indent/unindent region by n/-n spaces(n=4,8,... usually):
C-u <n> C-x TAB
- Go to previous cursor position(before ace-jump): `SPC SPC ``
- Do ag (code search) inside project :
SPC s a p
- Narrow to function :
SPC n f
(SPC n w
to exit) - Enable rainbow mode:
SPC t C c
- Search selected region or current word through ag in project:
SPC s p
- Highlight search results in another buffer (helm swoop):
SPC s s
(SPC s s
to exit) - Toggle current frame transparency:
SPC T T
- Toggle non-matching lines for iedit mode:
C-'
when in iedit mode (C-;) - Helm-resume background task:
SPC h l
- Enter .spacemacs diff mode:
SPC f e D
- Show kill ring history:
SPC r y
- When in dired mode, press
?
to display a list of commands. - Search within given buffer (helm-swoop mode):
SPC s s
- List all functions in the given buffer (imenu):
SPC s l