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 - `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' and `ESC` or `C-g` to escape 'insert'. - `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 - `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`