mirror of
https://github.com/samsonjs/mojo.el.git
synced 2026-04-27 15:07:42 +00:00
[FIXED] mojo-switch-file-dwim, *mojo-switch-suffixes* was broken and causing problems.
This commit is contained in:
parent
d8c5548b6c
commit
da2f76deb8
4 changed files with 55 additions and 11 deletions
|
|
@ -1,6 +1,12 @@
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
sjs 2009-12-04
|
||||||
|
v 0.9.9 (bug fix)
|
||||||
|
|
||||||
|
- Fixed the value of *mojo-switch-suffixes*, which was confusing
|
||||||
|
mojo-switch-file-dwim.
|
||||||
|
|
||||||
sjs 2009-12-04
|
sjs 2009-12-04
|
||||||
v 0.9.8 (framework_config.json support)
|
v 0.9.8 (framework_config.json support)
|
||||||
|
|
||||||
|
|
|
||||||
54
mojo.el
54
mojo.el
|
|
@ -1,6 +1,6 @@
|
||||||
;;; mojo.el --- Interactive functions for webOS development
|
;;; mojo.el --- Interactive functions for webOS development
|
||||||
;; 2009-12-04 02:24:07
|
;; 2009-12-04 15:44:24
|
||||||
(defconst mojo-version "0.9.8")
|
(defconst mojo-version "0.9.9")
|
||||||
|
|
||||||
(require 'json)
|
(require 'json)
|
||||||
|
|
||||||
|
|
@ -41,26 +41,58 @@ ideas. Send me a pull request on github if you hack on mojo.el.")
|
||||||
;;
|
;;
|
||||||
;; 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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;;; Commands:
|
;;; Commands:
|
||||||
;;
|
;;
|
||||||
|
;; 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
|
||||||
|
|
@ -212,6 +244,12 @@ ideas. Send me a pull request on github if you hack on mojo.el.")
|
||||||
;; =========
|
;; =========
|
||||||
;;
|
;;
|
||||||
;; sjs 2009-12-04
|
;; sjs 2009-12-04
|
||||||
|
;; v 0.9.9 (bug fix)
|
||||||
|
;;
|
||||||
|
;; - Fixed the value of *mojo-switch-suffixes*, which was confusing
|
||||||
|
;; mojo-switch-file-dwim.
|
||||||
|
;;
|
||||||
|
;; sjs 2009-12-04
|
||||||
;; v 0.9.8 (framework_config.json support)
|
;; v 0.9.8 (framework_config.json support)
|
||||||
;;
|
;;
|
||||||
;; - Implemented support for framework_config.json. Functions for
|
;; - Implemented support for framework_config.json. Functions for
|
||||||
|
|
@ -913,11 +951,11 @@ If the cache file does not exist then it is considered stale."
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
(defvar *mojo-switch-suffixes*
|
(defvar *mojo-switch-suffixes*
|
||||||
"Suffixes of files that we can guess where to switch."
|
|
||||||
'(("-assistant.js" . mojo-switch-to-view)
|
'(("-assistant.js" . mojo-switch-to-view)
|
||||||
("-scene.html" . mojo-switch-to-assistant)
|
("-scene.html" . mojo-switch-to-assistant)
|
||||||
(".html" . mojo-switch-to-next-view)
|
(".html" . mojo-switch-to-next-view)
|
||||||
("" . mojo-switch-to-appinfo)))
|
("" . mojo-switch-to-appinfo))
|
||||||
|
"Suffixes of files that we can guess where to switch.")
|
||||||
|
|
||||||
;;* interactive
|
;;* interactive
|
||||||
(defun mojo-switch-to-appinfo ()
|
(defun mojo-switch-to-appinfo ()
|
||||||
|
|
|
||||||
|
|
@ -608,11 +608,11 @@ If the cache file does not exist then it is considered stale."
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
(defvar *mojo-switch-suffixes*
|
(defvar *mojo-switch-suffixes*
|
||||||
"Suffixes of files that we can guess where to switch."
|
|
||||||
'(("-assistant.js" . mojo-switch-to-view)
|
'(("-assistant.js" . mojo-switch-to-view)
|
||||||
("-scene.html" . mojo-switch-to-assistant)
|
("-scene.html" . mojo-switch-to-assistant)
|
||||||
(".html" . mojo-switch-to-next-view)
|
(".html" . mojo-switch-to-next-view)
|
||||||
("" . mojo-switch-to-appinfo)))
|
("" . mojo-switch-to-appinfo))
|
||||||
|
"Suffixes of files that we can guess where to switch.")
|
||||||
|
|
||||||
;;* interactive
|
;;* interactive
|
||||||
(defun mojo-switch-to-appinfo ()
|
(defun mojo-switch-to-appinfo ()
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,6 @@
|
||||||
"title": "mojo.el",
|
"title": "mojo.el",
|
||||||
"filename": "../mojo.el",
|
"filename": "../mojo.el",
|
||||||
"basename": "mojo.el",
|
"basename": "mojo.el",
|
||||||
"version": "0.9.8",
|
"version": "0.9.9",
|
||||||
"template": "template.el"
|
"template": "template.el"
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue