Loading config/emacs_keys.lua→config/emacs.lua +0 −0 File moved. View file config/init.fnl +1 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ (require "config.fennel-mode") (require "config.repl") (require "config.irc") (require "config.emacs") (editor.open nil "*repl*" "repl") (editor.change_buffer "*repl*") config/init.lua→config/oldinit.lua +0 −0 File moved. View file main.lua +12 −2 Original line number Diff line number Diff line local fennel = require("fennel") table.insert(package.loaders, fennel.make_searcher({correlate=true})) fennel.path = love.filesystem.getSource() .. "/?.fnl;" .. love.filesystem.getSource() .. "/?/init.fnl;" .. fennel.path -- hack for running on android where stdout is broken if not os.getenv("PWD") then local out = io.open("/sdcard/lovegame/out", "w") print = function(...) for _, x in ipairs({...}) do out:write(tostring(x)) end out:write("\n") end end local polywell = require("polywell") local fs_for = require("polywell.fs") Loading Loading @@ -75,7 +85,7 @@ love.load = function() polywell.fs = polywell.fs or fs_for(os.getenv("PWD") or ".") -- You can use the init written in lua: -- dofile("config/init.lua") -- dofile("config/oldinit.lua") -- Or the init code written in Fennel: fennel.dofile("config/init.fnl") require("config") end polywell/old.lua +2 −1 Original line number Diff line number Diff line Loading @@ -590,7 +590,8 @@ local function bind(mode_name, keycode, fn) end local handle_textinput = function(text, long_ok) if(b and not find_binding(text) and (utf8.len(text) == 1 or long_ok)) then local _, len = pcall(utf8.len, text) if(b and not find_binding(text) and (len == 1 or long_ok)) then with_traceback(textinput, text) end end Loading Loading
config/init.fnl +1 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ (require "config.fennel-mode") (require "config.repl") (require "config.irc") (require "config.emacs") (editor.open nil "*repl*" "repl") (editor.change_buffer "*repl*")
main.lua +12 −2 Original line number Diff line number Diff line local fennel = require("fennel") table.insert(package.loaders, fennel.make_searcher({correlate=true})) fennel.path = love.filesystem.getSource() .. "/?.fnl;" .. love.filesystem.getSource() .. "/?/init.fnl;" .. fennel.path -- hack for running on android where stdout is broken if not os.getenv("PWD") then local out = io.open("/sdcard/lovegame/out", "w") print = function(...) for _, x in ipairs({...}) do out:write(tostring(x)) end out:write("\n") end end local polywell = require("polywell") local fs_for = require("polywell.fs") Loading Loading @@ -75,7 +85,7 @@ love.load = function() polywell.fs = polywell.fs or fs_for(os.getenv("PWD") or ".") -- You can use the init written in lua: -- dofile("config/init.lua") -- dofile("config/oldinit.lua") -- Or the init code written in Fennel: fennel.dofile("config/init.fnl") require("config") end
polywell/old.lua +2 −1 Original line number Diff line number Diff line Loading @@ -590,7 +590,8 @@ local function bind(mode_name, keycode, fn) end local handle_textinput = function(text, long_ok) if(b and not find_binding(text) and (utf8.len(text) == 1 or long_ok)) then local _, len = pcall(utf8.len, text) if(b and not find_binding(text) and (len == 1 or long_ok)) then with_traceback(textinput, text) end end Loading