aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/6_Startup.md
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-07-25 23:34:13 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2009-07-25 23:34:13 -0400
commit033416a15fe60fe10387119e0e63bb9ed9e8aedd (patch)
tree31bc4d91e15b484c336eadf25c0008f7bd17facc /doc/manual/6_Startup.md
parentb9e5e58446c95344b550c0a6ab91aa57ee9468ef (diff)
downloadtextadept-033416a15fe60fe10387119e0e63bb9ed9e8aedd.tar.gz
textadept-033416a15fe60fe10387119e0e63bb9ed9e8aedd.zip
Documentation overhaul.
Diffstat (limited to 'doc/manual/6_Startup.md')
-rw-r--r--doc/manual/6_Startup.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/manual/6_Startup.md b/doc/manual/6_Startup.md
new file mode 100644
index 00000000..c9103782
--- /dev/null
+++ b/doc/manual/6_Startup.md
@@ -0,0 +1,33 @@
+# Startup Process
+
+Textadept starts up ridiculously fast. On most computers it starts up around as
+fast as you can blink.
+
+## Core (`core/init.lua`)
+
+The key to Textadept's lightning fast start time is that it loads only its core
+modules before showing the window.
+
+#### Themes
+
+Textadept loads its theme during the Core startup process. Each theme is its
+own folder with three files: `buffer.lua`, `lexer.lua`, and `view.lua`. The
+buffer theme sets default buffer properties like tabs and indentation. The view
+theme sets default view properties like caret color and current line background
+color. Lexer themes set the color and style definitions used by most lexers. By
+default the `'light'` theme is used. A `'scite'` theme is provided for users
+accustomed to SciTE.
+
+To use a different theme, create a `~/.textadept/theme` file containing the
+name of the built-in theme you would like. If you have a custom theme, use the
+path to its directory instead. Any errors are printed to standard out.
+
+## Post-Core (`init.lua`)
+
+After loading the core modules, Textadept begins loading additional modules.
+It first checks for a `~/.textadept/init.lua` user module. If the module is
+found, it is run and skips loading the default modules specified in `init.lua`.
+Otherwise a mixture of core extension and generic modules are loaded.
+
+After loading the additional modules, Textadept parses command line arguments,
+or if none are specified, reloads the last saved session.