branch: elpa/lua-mode
commit aedf8a57d04b9a8e64ac3a8c8c6244dcfb34c908
Author: juergen <juergen>
Commit: juergen <juergen>
Documentation in restructured text
---
install.rst | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/install.rst b/install.rst
new file mode 100755
index 0000000..c2b1fc8
--- /dev/null
+++ b/install.rst
@@ -0,0 +1,23 @@
+=============================
+ Lua-mode
+=============================
+
+:Author: Jürgen Hötzel
+:Contact: [email protected]
+
+.. contents::
+
+INSTALLATION
+------------
+To install, just drop ``lua-mode.el`` into a directory on your ``load-path``
(and optionally
+byte-compile it).
+
+To set up Emacs to automatically edit files ending in .lua using Lua-mode add
the following to your ``~/.emacs`` file (GNU
+Emacs) or ``~/.xemacs/init.el`` file (XEmacs)::
+
+(setq auto-mode-alist (cons '("\\.lua$" . lua-mode) auto-mode-alist))
+(autoload 'lua-mode "lua-mode" "Lua editing mode." t)
+
+If you want colorization, turn on ``global-font-lock`` or add this::
+
+(add-hook 'lua-mode-hook 'turn-on-font-lock)
\ No newline at end of file