Introduction
My primary code editor as of Nov 18 2024. It is great. I will document all the tricks I know here that I may forget due to infrequent use. I use Spacemacs framework so a subset of the shortcuts listed here are from that framework.
- Update (20 November 2024): I switched to my own config, ditching Spacemacs.
- Update (24 November 2024): I switched from Evil Mode to Meow Mode.
- Update (18 November 2024): I switched from Meow Mode to Boon Mode.
General
M-x s dsee the diff of the current buffer and its corresponding fileM-qwrap the content at the cursorM-x set-fill-columnset max length. 88 recommendedC-x hselect all content of the bufferC-u M-!insert output of a shell command into buffer
Editing and Surrounding
M-' sadd or remove surrounding textM-' Tapply title case to a regionM-' u uremove trailing whitespaceM-' u aalign by regular expressionM-' u sperform a find-and-replaceM-' u Sperform a regex find-and-replace
Navigation
M-' n tjump to a character pair usingavyM-' n Tjump with a character timer usingavyM-' n Isearch text usingswiperM-' n asearch or grep usingcounselM-' n ijump to files usingcounselM-' n nmanage bookmarks usingcounselM-' n fopen recent files or buffers usingcounsel
File and Buffer Management
M-' fopen file in DiredM-' yeditpost-init.elfileM-' Yreload configurationM-' qquit windowM-' Qexit EmacsM-' TABswitch to the previous bufferM-' k pclose current bufferM-' k Pkill another bufferM-' k Tdelete a bookmarkM-' k mopen messages bufferM-' k sswitch to scratch buffer
Window Management
M-' w nmove window focus downwardM-' w emove window focus upwardM-' w hmove window focus rightwardM-' w imove window focus leftwardM-' w ydelete window
Compilation and Error Navigation
M-' c ytoggle compilation windowM-' c sswitch to compilation bufferM-' c ccompileM-' c njump to the next errorM-' c ejump to the previous errorM-' c kkill compilation
Language Server Protocol (LSP)
M-' l lstart theeglotLSP clientM-' l sstopeglotM-' l dshow documentation witheldocM-' l rrename usingeglotM-' l RreconnecteglotM-' l fformat buffer witheglotM-' l iorganize imports witheglot
Custom and Miscellaneous Commands
M-' h tuse custom paging commandsM-' h nopen number editing HydraM-' h Topen TODO management HydraM-' h hclear search highlights