               (and (or (.isControlDown e) (.isMetaDown e))
                 (contains? #{KeyEvent/VK_V KeyEvent/VK_X} (.getKeyCode e)))
               (->> (init-state text-area)
-                   (get-parinfer-state text-area false)
+                   (get-parinfer-state text-area console?)
                    (refresh-content! text-area)
                    (mwm/update-edit-history! edit-history))))
           (keyTyped [this e] nil)

      ; add watchers
      (add-watchers! path text-area)
      ; initialize parinfer
      (init-parinfer! text-area extension edit-history true)
      (update-buttons! editor-pane text-area)
      ; enable/disable buttons while typing
      (.addDocumentListener (.getDocument text-area)

        state))))

(defn init-parinfer!
  [^TextEditorPane text-area extension edit-history console?]
  (if (contains? utils/clojure-exts extension)
    (let [old-text (.getText text-area)]
      ; use paren mode to preprocess the code
      (when-not console?
        (->> (init-state text-area)
             (get-parinfer-state text-area true)
             (refresh-content! text-area)
