💾 Archived View for henn.es › cheatsheet › emacs.gmi captured on 2023-11-04 at 11:22:23. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-07-10)
-=-=-=-=-=-=-
C-x = : Print info on cursor position (more with C-u C-x =)
C-x 8 Enter : Insert char
It is assumed that projectile keymap prefix is set to "s-p".
s-p f : Find file
s-p p : Switch to project
s-p s s : Search for pattern (with ag)
C-u C-c C-k : Copy path to kill ring
C-c TAB / C-c C-i: Copy path to current buffer
C-SPC : Mark file
M-a : Mark all files
C-s : grep content (in selected file or marked files)
C-u C-s : grep content in files matching name pattern (in selected file or marked files)
s-l = = : Format buffer
s-l g e : Show error list
s-l r o : Organize imports
s-l w r : Restart workspace and its LSP server
C-c C-e / : Close tag
C-x C-f /ssh:user@host:/path/to/file : Open file of remote machine via SSH
C-x C-f /sudo::/path/to/file : Open file with sudo (e.g. to edit a system file)