aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-01-24 15:56:26 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-01-24 15:56:26 -0500
commitf0456d89738b562917a820b986fc038cd70235cb (patch)
tree8fe12e00d68c49847ac4889550c6adeb9bbf3fda /core
parent60544f1550999df6a55dbdfc2cbd7542fecb3314 (diff)
downloadtextadept-f0456d89738b562917a820b986fc038cd70235cb.tar.gz
textadept-f0456d89738b562917a820b986fc038cd70235cb.zip
Use lexer themes defined in Textadept's themes/, not scintilla-st's themes/.
Diffstat (limited to 'core')
-rw-r--r--core/events.lua4
-rw-r--r--core/init.lua2
2 files changed, 4 insertions, 2 deletions
diff --git a/core/events.lua b/core/events.lua
index 1d227b30..ce91452c 100644
--- a/core/events.lua
+++ b/core/events.lua
@@ -215,7 +215,9 @@ add_handler('view_new',
buffer.property['lexer.lua.script'] = _HOME..'/lexers/lexer.lua'
if _THEME and #_THEME > 0 then
if not _THEME:match('[/\\]') then
- buffer.property['lexer.lua.color.theme'] = _THEME
+ -- use a lexer theme from Textadept's themes, not scintilla-st's
+ buffer.property['lexer.lua.color.theme'] =
+ _HOME..'/themes/'.._THEME..'/lexer.lua'
else -- _THEME is a folder path
buffer.property['lexer.lua.color.theme'] = _THEME..'/lexer.lua'
end
diff --git a/core/init.lua b/core/init.lua
index 3767a31f..7b547334 100644
--- a/core/init.lua
+++ b/core/init.lua
@@ -9,7 +9,7 @@ else
package.cpath = _HOME..'/core/?.dll;'..package.cpath
end
-_THEME = ''
+_THEME = 'light'
local user_dir = os.getenv(not WIN32 and 'HOME' or 'USERPROFILE')
if user_dir then
local f = io.open(user_dir..'/.ta_theme')