48 lines
1.4 KiB
Markdown
48 lines
1.4 KiB
Markdown
Useful Doom Emacs Commands
|
|
=====================
|
|
|
|
## Notation
|
|
|
|
- `SPC` means space bar
|
|
- `C-` means hold down `Ctrl`
|
|
- `M-` means hold down `Alt` for non-Macs and `Option` for Macs
|
|
- `S-` means hold down `Shift`
|
|
- `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 bindings
|
|
- `SPC f f` to find files. can use `TAB` for auto-completing paths
|
|
- `h j k l` for left down up right
|
|
- `SPC b k` to kill 'buffers'
|
|
- `i` to go into __insert mode_ (in insert mode you can insert text)
|
|
and `ESC` or `C-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 file
|
|
- `C-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 terms
|
|
- `C-c C-n` used for 'reducing' terms to their 'simplest form'
|
|
- `C-c C-.` does `C-c C-,` and `C-c C-d`
|
|
- `M-SPC c d` looks up the definition of the thing you are hovering over.
|
|
|