mirror of
https://github.com/samsonjs/mojo.el.git
synced 2026-03-25 09:25:49 +00:00
[CHANGED] some documentation.
This commit is contained in:
parent
cc7ff22d96
commit
d8c5548b6c
2 changed files with 36 additions and 4 deletions
17
COMMANDS
17
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:
|
The complete command list:
|
||||||
|
|
||||||
Code generation
|
Code generation
|
||||||
|
|
|
||||||
23
INSTALL
23
INSTALL
|
|
@ -1,18 +1,33 @@
|
||||||
|
|
||||||
1. Put json.el and mojo.el somewhere in your load-path.
|
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.)
|
(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)
|
2. Add this to your Emacs init file: (require 'mojo)
|
||||||
|
|
||||||
3. Enable mojo-mode for modes that you use for webOS, e.g.:
|
3. Enable mojo-mode for modes that you use for webOS, e.g.:
|
||||||
|
|
||||||
(mojo-setup-mode-hooks 'css-mode-hook 'js2-mode-hook
|
(mojo-setup-mode-hooks 'css-mode-hook 'js2-mode-hook
|
||||||
'espresso-mode-hook 'html-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
|
wholesale, but instead only enables mojo-mode when it finds that
|
||||||
the file is also under a Mojo project root (using mojo-project-p).
|
the file is also under a Mojo project root (using mojo-project-p).
|
||||||
|
|
||||||
4. Make sure you customize the variables:
|
4. Make sure you customize the variables:
|
||||||
mojo-project-directory, mojo-sdk-directory and mojo-build-directory
|
mojo-project-directory, mojo-sdk-directory and mojo-build-directory
|
||||||
(Use M-x customize-group RET mojo RET)
|
(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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue