aboutsummaryrefslogtreecommitdiff
path: root/themes/scite/buffer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'themes/scite/buffer.lua')
-rw-r--r--themes/scite/buffer.lua41
1 files changed, 21 insertions, 20 deletions
diff --git a/themes/scite/buffer.lua b/themes/scite/buffer.lua
index 0b70c606..aa5555f5 100644
--- a/themes/scite/buffer.lua
+++ b/themes/scite/buffer.lua
@@ -1,20 +1,21 @@
--- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE.
--- SciTE editor theme for Textadept.
-
-local textadept, buffer = textadept, buffer
-
--- folding
-buffer.property['fold'] = '1'
-buffer.property['fold.by.indentation'] = '1'
-
--- tabs and indentation
-buffer.tab_width = 2
-buffer.use_tabs = false
-buffer.indent = 2
-buffer.tab_indents = true
-buffer.back_space_un_indents = true
-buffer.indentation_guides = 1
-
--- various
-buffer.eol_mode = textadept.constants.SC_EOL_LF
-buffer.auto_c_choose_single = true
+-- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE.
+-- SciTE editor theme for Textadept.
+
+local textadept = _G.textadept
+local buffer = buffer
+
+-- folding
+buffer.property['fold'] = '1'
+buffer.property['fold.by.indentation'] = '1'
+
+-- tabs and indentation
+buffer.tab_width = 2
+buffer.use_tabs = false
+buffer.indent = 2
+buffer.tab_indents = true
+buffer.back_space_un_indents = true
+buffer.indentation_guides = 1
+
+-- various
+buffer.eol_mode = textadept.constants.SC_EOL_LF
+buffer.auto_c_choose_single = true