From 0f4884bd8bd6c848411069c9ecb45001ef52f5c8 Mon Sep 17 00:00:00 2001 From: Michael Raitza Date: Tue, 23 Apr 2019 09:35:57 +0200 Subject: [PATCH] Add playground --- playground.factor | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 playground.factor diff --git a/playground.factor b/playground.factor new file mode 100644 index 0000000..5d1b109 --- /dev/null +++ b/playground.factor @@ -0,0 +1,16 @@ +! Set up factor UI and editor integration for this project +! Use emacs as the editor and switch UI to dark mode +! Run this to start development in the UI +USING: editors.emacs io.backend threads ui ui.theme.switching vocabs.loader ; + +! Add project's root to vocabulary roots and load all project components +! current-directory get +"./" normalize-path add-vocab-root + +! Fire up the UI. This gives you graphical code walker support without the need +! to open a graphical listener window first. +IN: scratchpad + +: setup-ui ( dark? -- ) + [ dark-mode ] [ light-mode ] if + [ [ ] with-ui ] in-thread ;