recipes/doc/emacs_notes.md
2024-08-28 12:46:05 +01:00

2 KiB

Emacs

Base

  • C-x C-s: Save current file.
  • C-x C-f: Find or open file.

Markdown

Module Reference

  • C-c C-s 1: Insert level one heading with hash delimiter.
  • C-c C-c p: Show preview in browser.
  • C-c C-x l: Toggle url hiding
  • C-c C-x i: Toggle inline images
  • C-c C-x m: Toggle markdown visibility
  • S-Tab: Toggle global visibility
  • TAB: Toggle local header visibility

Evil

Reference card

  • CTRL- {D, U, F, B}: Scroll down/up by half or full page
  • zt zz zb: Scroll current line to top, centre, bottom
  • 0 $: Move to beginning or end of line
  • { }: Move to beginning or end of paragraph
  • h l j k: Character left, right, up, down
  • y p: Yank (copy) or paste

Magit

Reference card

  • CTRL-x g: Status buffer
  • S: Stage all changes
  • c: Start a commit
    • C-c C-c: Finish a commit
  • P: Start a push
    • u: Push to origin

Auctex

Org Mode

https://orgmode.org/worg/org-tutorials/org4beginners.html

  • TAB/S-TAB: Fold/Unfold
  • M-up/down: move headline up/down
  • M-left/right: promote or demote headline
  • M-RET: add new headline

Treemacs

https://github.com/Alexander-Miller/treemacs

  • C-c C-w s: Switch workspace

Lsp Mode

Python

Install language LSP server:

brew install python-lsp-server

Further Reading