From d8c5548b6ce62eac6f88dded9e7e178556498dbb Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Fri, 4 Dec 2009 02:40:45 -0800 Subject: [PATCH] [CHANGED] some documentation. --- COMMANDS | 17 +++++++++++++++++ INSTALL | 23 +++++++++++++++++++---- 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/COMMANDS b/COMMANDS index fc38b8f..c1a8062 100644 --- a/COMMANDS +++ b/COMMANDS @@ -1,3 +1,20 @@ +Default key bindings: + + * C-c C-c a -- mojo-switch-to-assistant + * C-c C-c i -- mojo-switch-to-appinfo + * C-c C-c I -- mojo-switch-to-index + * C-c C-c n -- mojo-switch-to-next-view + * C-c C-c s -- mojo-switch-to-sources + * C-c C-c S -- mojo-switch-to-stylesheet + * C-c C-c v -- mojo-switch-to-view + * C-c C-c SPC -- mojo-switch-file-dwim + * C-c C-c C-e -- mojo-emulate + * C-c C-c C-p -- mojo-package + * C-c C-c C-r -- mojo-package-install-and-inspect + * C-c C-c C-s -- mojo-generate-scene + * C-c C-c C-t -- mojo-toggle-target + + The complete command list: Code generation diff --git a/INSTALL b/INSTALL index 3af3ba7..518ae43 100644 --- a/INSTALL +++ b/INSTALL @@ -1,18 +1,33 @@ 1. Put json.el and mojo.el somewhere in your load-path. (Use M-x show-variable RET load-path to see what your load path is.) + + => http://github.com/samsonjs/mojo.el -- mojo.el and json.el + => http://edward.oconnor.cx/2006/03/json.el -- official json.el 2. Add this to your Emacs init file: (require 'mojo) 3. Enable mojo-mode for modes that you use for webOS, e.g.: - (mojo-setup-mode-hooks 'css-mode-hook 'js2-mode-hook - 'espresso-mode-hook 'html-mode-hook) + (mojo-setup-mode-hooks 'css-mode-hook 'js2-mode-hook + 'espresso-mode-hook 'html-mode-hook) - Note that this does not simply enable mojo-mode for these types + * Note that this does not simply enable mojo-mode for these types wholesale, but instead only enables mojo-mode when it finds that the file is also under a Mojo project root (using mojo-project-p). - + 4. Make sure you customize the variables: mojo-project-directory, mojo-sdk-directory and mojo-build-directory (Use M-x customize-group RET mojo RET) + + (optional but recommended) + + 5. js2-mode for JavaScript and espresso-mode for JSON. + + => http://code.google.com/p/js2-mode/ + => http://www.nongnu.org/espresso/ + + +That's it! You've got the most powerful Mojo development environment. + +Check COMMANDS for a list of all interactive commands and key bindings.