 (defn create-layered-pane
   "Returns the pane with the editors."
   []
-  (let [pane (core/create-editor-pane)]
+  (let [pane (editors/create-pane)]
     (doto (JLayeredPane.)
       (.setPreferredSize (Dimension. editor-width window-height))
       (.addComponentListener (proxy [ComponentAdapter] []

          ; page down
          34 (editors/move-tab-selection! 1)
          ; Q
          81 (core/confirm-exit-app!)
          ; W
          ;87 (editors/close-selected-editor!)
          ; else
          false)))
    ; set various window properties
    core/enable-full-screen!
    core/add-window-listener!))

(defn -main
  "Launches the main window."
  []
  (s/native!)
  (SubstanceLookAndFeel/setSkin (GraphiteSkin.))
  (s/invoke-later
    (s/show! (reset! ui/ui-root (create-window)))
    (binding [editors/editor-widgets editor-widgets]
      (comment editors/show-editor! "")))
  (Keyboard/enableRepeatEvents true))

(ns nightmod.core.desktop-launcher
  (:require [clojure.java.io :as io]
            [nightmod.core :refer :all]
            [nightcode.editors :as editors]
            [nightcode.dialogs :as dialogs]
            [nightcode.shortcuts :as shortcuts]
            [nightcode.ui :as ui]
            [nightcode.utils :as utils]
            [nightcode.window :as window]
            [seesaw.core :as s]
            [seesaw.util :as s-util])
  (:import [java.awt BorderLayout Canvas Dimension Window]
