Alex's Slip-box

These are my org-mode notes in sort of Zettelkasten style

Emacs cheatsheet

This is just a dump or random things I’ve learned how to do in Emacs but will probably forget.

# Word Wrapping

  • auto-fill-mode is what you need. This will automatically wrap words after the line exceeds whatever value is set for fill-column

    For example, turn it on for org-mode

    (setq-default fill-column 80)
    (add-hook 'org-mode-hook (lambda () (auto-fill-mode 1)))
  • fill-region does what is says

# Advising Functions

# After callback example

;; Save Org buffers after refiling
(advice-add 'org-refile :after 'org-save-all-org-buffers)

# Surrounding

Just use Evil-surround.

  • s( to surround region.