lite-xl/data/user/init.lua

32 lines
950 B
Lua
Raw Normal View History

2019-12-28 12:16:32 +01:00
-- put user settings here
-- this module will be loaded after everything else when the application starts
-- it will be automatically reloaded when saved
2019-12-28 12:16:32 +01:00
local keymap = require "core.keymap"
local config = require "core.config"
local style = require "core.style"
-- light theme:
-- style.load("colors.summer")
2019-12-28 12:16:32 +01:00
-- key binding:
-- keymap.add { ["ctrl+escape"] = "core:quit" }
-- customize fonts:
-- style.font = renderer.font.load(DATADIR .. "/fonts/font.ttf", 14 * SCALE)
-- style.code_font = renderer.font.load(DATADIR .. "/fonts/monospace.ttf", 13.5 * SCALE)
--
-- fonts used by the editor:
-- style.font : user interface
-- style.big_font : big text in welcome screen
-- style.icon_font : icons
-- style.code_font : code
--
-- the function to load the font accept a 3rd optional argument like:
--
-- {antialiasing="grayscale", hinting="full"}
--
-- possible values are:
-- antialiasing: grayscale, subpixel
-- hinting: none, slight, full