Skip to content

Commit

Permalink
* Removed ChangeLog.
Browse files Browse the repository at this point in the history
* Removed mweb-default-major mode value.
* Modified README to match new updates.
  • Loading branch information
Fabián Ezequiel Gallina committed Feb 26, 2010
1 parent 4efe5b7 commit 233eb32
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 75 deletions.
23 changes: 0 additions & 23 deletions ChangeLog

This file was deleted.

74 changes: 23 additions & 51 deletions README
Expand Up @@ -25,22 +25,31 @@ This package contains multi-web-mode.
that by using M-x customize-group RET multi-web-mode and looking
for the `mweb-tags' variable.

If you wish a major-mode or extra to be included in the default
package please let me know.
All third packages were removed from the project repo (they were
included with mweb previously), mainly because it is difficult to
track new versions for everything and because it favoured the user
lazyness to check the basic configuration :).

2. Requirements

You don't need any special libraries to run this package since it
includes already all the necessary major-modes and extras.
You don't need any special libraries to run this package. Just the
ones you want to integrate with it.

Regarding the version of Emacs, this package was tested successfully
with 23.0.60.
with >= 23.0.60.

3. Installation

To install Multi Web Mode just put
(load "<path-to-multiweb-mode>/load.el") in your .emacs file and
you are done.
To install Multi Web Mode you'll need to do something like this in
your .emacs:

(require 'multi-web-mode)
(setq mweb-default-major-mode 'html-mode)
(setq mweb-tags '((php-mode "<\\?php\\|<\\? \\|<\\?=" "\\?>")
(espresso-mode "<script +\\(type=\"text/javascript\"\\|language=\"javascript\"\\)[^>]*>" "</script>")
(css-mode "<style +type=\"text/css\"[^>]*>" "</style>")))
(setq mweb-filename-extensions '("php" "htm" "html" "ctp" "phtml" "php4" "php5"))
(multi-web-global-mode 1)

Restart Emacs or use M-x load-file ~/.emacs.

Expand All @@ -50,55 +59,18 @@ This package contains multi-web-mode.

M-<f11> : Prompts the user to override the default major mode.

M-<f12> : Prompts the user to override the calculated extra indentation.

[tab] : Is bound to `mweb-indent'.

[backtab] : Deletes indentation, useful when magic indentation
`mweb-submodes-magic-indent' is nil. It deletes the number of spaces
defined in `mweb-default-submode-indent-offset'.

5. Included packages

These are third party packages which are included appart from
multi-web-mode.el. See the license terms on the top of the files.

Major modes can be found on the `major-mode' subdirectory of the
package, the rest is on the `extras' one.

* php-mode.el: PHP major mode from [http://php-mode.sourceforge.net/]

* espresso.el: Amazing Javascript mode with builtin support for
various frameworks. [http://www.nongnu.org/espresso/]

* django-html-mode: Major mode based on sgml-mode. It adds coloring
and indentation support django template tags in html files.

* moz.el: MozRepl lets you program Firefox and other Mozilla-based
applications from the inside; and this great minor mode lets
you communicate to MozRepl directly from your Emacs.
[http://wiki.github.com/bard/mozrepl]

* hexcolour.el: Hexadecimal color fontification in buffer, useful
for css-mode. Minor mode created from the shared code at
[http://www.emacswiki.org/emacs/HexColour]

* fixme-mode.el: Highlights FIXME, TODO, and other warnings in
source code and allows fast navigation through them.
[http://www.emacswiki.org/emacs/FixmeMode]

* tabkey2-mode.el: Call the command you want using tab. Extracted
from the great nxhtml package (which I used a lot before
multi-web) [http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html]
M-<f12> : Prompts the user to override the calculated extra
indentation. Useful when the automatic calculation is not good
enough.

6. Bug Reports
5. Bug Reports

If you find a bug please report it sending an email listed in the
top of the file.

7. License
6. License

multi-web-mode.el and load.el is free software under the GPL v3,
multi-web-mode.el is free software under the GPL v3,
see LICENSE file for details.

For other files included in the package check their licenses in the
Expand Down
2 changes: 1 addition & 1 deletion multi-web-mode.el
Expand Up @@ -49,7 +49,7 @@
"Extra indentation for chunks, automatically calculated when
the major mode has changed.")

(defcustom mweb-default-major-mode 'html-mode
(defcustom mweb-default-major-mode nil
"Default major mode when not in chunk."
:type 'symbol
:group 'multi-web-mode)
Expand Down

0 comments on commit 233eb32

Please sign in to comment.