1.4 KiB
1.4 KiB
Useful Doom Emacs Commands
Notation
SPC
means space barC-
means hold downCtrl
M-
means hold downAlt
for non-Macs andOption
for MacsS-
means hold downShift
RET
means enter
Example C-c C-l
in Agda files is Ctrl-c
, let go, Ctrl-l
General Doom Emacs usage
The 'ambient mode' is called _evil mode and follows vim-like bindings. The following commands are for evil mode:
SPC h b b
to look for bindingsSPC f f
to find files. can useTAB
for auto-completing pathsh j k l
for left down up rightSPC b k
to kill 'buffers'i
to go into _insert mode (in insert mode you can insert text) andESC
orC-g
to go back to evil mode.C-_
to undo
For beta users, to get the latest patch
- do
SPC g g
for "git status" - then
F
for pull (whilst in "git status")
Agda usage
To insert text in the agda
file use i
to enter insert mode.
C-c C-l
loads the fileC-c C-,
checks goal of the hole your cursor is in.C-c C-SPC
fills hole your cursor is in.C-c C-r
refines the hole your cursor is in.C-c C-c
does cases on terms in the hole your cursor is in.C-c C-d
used for checking types of termsC-c C-n
used for 'reducing' terms to their 'simplest form'C-c C-.
doesC-c C-,
andC-c C-d
M-SPC c d
looks up the definition of the thing you are hovering over.