UP | HOME

Emacs

Emacs

ELISP

  • (delete value list) destructively removes all occurences of value from list
  • (remove value list) returns a copy of list with value removed

Common Commands:

C-x C-c : Close C-x C-f : Find file (equivalent to vim's :edit) C-x C-s : Save C-x s : Save some buffers (will prompt for each buffer with unsaved changes) C-s : Incremental search M-q : format paragraph with margin C-h : Access help C-h c command-key : Short help on function C-h k command : Long help on function C-s : Forward Incremental Search C-r : Backwards Incremental Search C-w : Kill (in vim parlance, yank) C-y : Yank (in vim parlance, paste) M-y : Cycle through pasting snips from the kill buffer C-h w : enter a command and be told what key command invokes it M-; : dwim comment C-x 8: Menu for entering various unicode characters

Org Mode

C-c C-q: Edit tags C-c C-t: Edit todo item C-c C-s: Schedule item C-c C-x o: Set the ordered property (all child todos must be completed in order) C-c C-l: Edit links C-c &: Return to last position before following link C-u # M-x org-agenda : Display the agenda view for # of days

Export

C-x C-e: Org export dispatch. Can select from various ways to export and org file. Use `H A` to export whole org file with ox-hugo Use \# to load in templates

  • HTML

    If you want to export raw html from your document, you have two options.

    Short version: Encapsulate the code with double @ symbols. Example: Bold Text

    Long version:

    Literal HTML code for export All lines between these markers are exported literally

Dired

C-c C-q : Enter editing mode in dired buffer M-% : Find and Replace to change multiple files

DocView Mode

C-c C-t: change view to text mode. Useful for copying text from pdf. n; PageDown; next; C-x ]: display next page p; PageUp; prior; C-x [: display previous page +/-: (doc-view-enlarge)/(doc-view-shrink

Profiler

M-x profiler-[start,stop,report] will run the profiler and collect data on cpu and mem usasge, giving you a report. It's possible to see which functions are sucking up cpu time and making emacs slow.