Skip to content

Instantly share code, notes, and snippets.

View adamrenklint's full-sized avatar

Adam Renklint adamrenklint

View GitHub Profile
(defn code-mirror
"Create a code-mirror editor. The parameters:
value-atom (reagent atom)
when this changes, the editor will update to reflect it.
options
:style (reagent style map)
will be applied to the container element
:js-cm-opts
options passed into the CodeMirror constructor
:on-cm-init (fn [cm] -> nil)
@adamrenklint
adamrenklint / tmux.md
Created October 14, 2016 13:32 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@adamrenklint
adamrenklint / emacs-cheat-sheet.md
Created October 13, 2016 14:14 — forked from dherman/emacs-cheat-sheet.md
Emacs cheat sheet

Rule of thumb: when in doubt, C-g it out.

Basics (mandatory)

You simply can't get by without having these at your fingertips.

  • C-x C-c - quit
  • C-x C-s - save buffer
  • C-x C-f - open file
  • C-x b buffer name - switch to open buffer