 
 (defn saved?
   "Determines whether or not the app state has changed since last
-   save."
+  save."
   [{:keys [input last-input title last-title]}]
   (and
     (= input last-input)


(defn wordsmith-app
  "The starting point of the wordsmith app. Implements will-mount and 
   render."
  [app owner]
  (reify
    om/IWillMount
    (will-mount [_]
      "Fetches document titles and starts the asynchronous command event 
       dispatch loop which handles all major app state changing events.
       Also attaches a KEYDOWN event listener to the page, for hot keys."
      (listen-to-hotkeys app)
      (om/update! app :titles (p/get-all-titles))
      (let [channel (:channel app)]


(defn editor
  "Component that renders the editor and preview. Compiles the app state input
  to markdown and dangerously sets it to output-area. Editing the input-area 
  triggers an update to the app state."
  [input owner]
  (reify
    om/IRender
