aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/file_types.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-08-31 00:47:12 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-08-31 00:47:12 -0400
commitd633a4c74e824113f5d242cb18573fed3015bc27 (patch)
tree41c05e5b83036493d61e68871dc3b011dd71bf03 /modules/textadept/file_types.lua
parenta54200e99b529d2fbbee6e27fabcb2e8de908c19 (diff)
downloadtextadept-d633a4c74e824113f5d242cb18573fed3015bc27.tar.gz
textadept-d633a4c74e824113f5d242cb18573fed3015bc27.zip
Allow user scripts to handle `BUFFER_NEW` and `VIEW_NEW` events on startup.
A side effect is more efficient event emission during startup.
Diffstat (limited to 'modules/textadept/file_types.lua')
-rw-r--r--modules/textadept/file_types.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/textadept/file_types.lua b/modules/textadept/file_types.lua
index f28e9d29..d4f6df57 100644
--- a/modules/textadept/file_types.lua
+++ b/modules/textadept/file_types.lua
@@ -111,7 +111,6 @@ local function set_lexer_functions()
buffer.get_style_name = get_style_name
end
events.connect(events.BUFFER_NEW, set_lexer_functions, 1)
-set_lexer_functions() -- for the first buffer
-- Auto-detect lexer on file open or save as.
events.connect(events.FILE_OPENED, function() buffer:set_lexer() end)