aboutsummaryrefslogtreecommitdiff
path: root/themes/scite/buffer.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2008-09-24 19:00:19 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2008-09-24 19:00:19 -0400
commit4554c2ca782ea2667570d81899142af8a642aa3b (patch)
treec467095e045703b26d460a9ff83de4d5691f45d8 /themes/scite/buffer.lua
parent3a646edfda37563fc4cd1e4b0422c28193406c10 (diff)
downloadtextadept-4554c2ca782ea2667570d81899142af8a642aa3b.tar.gz
textadept-4554c2ca782ea2667570d81899142af8a642aa3b.zip
Added _THEME variable; themes are now directories with view.lua and buffer.lua.
Now editing core/events.lua's buffer_new handler function is no longer necessary on a per-user basis. If _THEME is set, that theme's buffer.lua is loaded for a 'buffer_new' event, and view.lua for 'view_new'.
Diffstat (limited to 'themes/scite/buffer.lua')
-rw-r--r--themes/scite/buffer.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/themes/scite/buffer.lua b/themes/scite/buffer.lua
new file mode 100644
index 00000000..d46cc88a
--- /dev/null
+++ b/themes/scite/buffer.lua
@@ -0,0 +1,20 @@
+-- Copyright 2007-2008 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