💾 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

View Raw

More Information

⬅️ Previous capture (2023-07-10)

➡️ Next capture (2023-12-28)

-=-=-=-=-=-=-

hennes' Emacs cheatsheet

Common

C-x = : Print info on cursor position (more with C-u C-x =)

C-x 8 Enter : Insert char

Projectile

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)

Helm

in helm-find-files

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)

LSP Java

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

web-mode

C-c C-e / : Close tag

TRAMP

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)