Giter VIP home page Giter VIP logo

multi-web-mode's Introduction

This package contains multi-web-mode.

0. Info

   Author: Fabián Ezequiel Gallina
   Contact: fabian at gnu dot org dot ar
   Project homepage: http://github.com/fgallina/multi-web-mode
   Wiki: http://github.com/fgallina/multi-web-mode/wikis
   My Blog: http://www.from-the-cloud.com
   Downloads page: http://github.com/fgallina/multi-web-mode/downloads

1. Introduction

   Multi Web Mode is a minor mode which makes web editing in Emacs
   much easier.

   Basically what it does is select the appropriate major mode
   automatically when you move the point and also calculates the
   correct indentation of chunks according to the indentation of the
   most relevant major mode.

   Currently it is focused to work on buffers which contain html, css,
   javascript and/or php, but adding other modes is really simple: you
   just need to add your own mode to the `mweb-tags'. You can do that
   by using M-x customize-group RET multi-web-mode and looking for the
   `mweb-tags' variable.

   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 favored the user
   laziness to check the basic configuration :).

   The last multi-web-mode release which contained all packages was
   0.2.1. It is still available from here:

      * http://github.com/fgallina/multi-web-mode/tree/0.2.1

2. Requirements

   You don't need any special libraries to run this package. Just the
   ones you want to integrate to it.

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

3. Installation

   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\\|<\\? \\|<\\?=" "\\?>")
                      (js-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.

4. Usage

   Multi Web Mode binds the following keystrokes:

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

   M-<f12> : Prompts the user to override the calculated extra
   indentation. Useful when the automatic calculation is not good
   enough.

5. Bug Reports

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

6. License

   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
   top of the files.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.